PHP Class Doctrine\DBAL\Types\ConversionException

Inheritance: extends Doctrine\DBAL\DBALException
Show file Open project: doctrine/dbal Class Usage Examples

Public Methods

Method Description
conversionFailed ( string $value, string $toType ) : ConversionException Thrown when a Database to Doctrine Type Conversion fails.
conversionFailedFormat ( string $value, string $toType, string $expectedFormat, Exception $previous = null ) : ConversionException Thrown when a Database to Doctrine Type Conversion fails and we can make a statement about the expected format.
conversionFailedInvalidType ( mixed $value, string $toType, array $possibleTypes ) : ConversionException Thrown when the PHP value passed to the converter was not of the expected type.
conversionFailedSerialization ( $value, $format, $error )

Method Details

conversionFailed() public static method

Thrown when a Database to Doctrine Type Conversion fails.
public static conversionFailed ( string $value, string $toType ) : ConversionException
$value string
$toType string
return ConversionException

conversionFailedFormat() public static method

Thrown when a Database to Doctrine Type Conversion fails and we can make a statement about the expected format.
public static conversionFailedFormat ( string $value, string $toType, string $expectedFormat, Exception $previous = null ) : ConversionException
$value string
$toType string
$expectedFormat string
$previous Exception
return ConversionException

conversionFailedInvalidType() public static method

Thrown when the PHP value passed to the converter was not of the expected type.
public static conversionFailedInvalidType ( mixed $value, string $toType, array $possibleTypes ) : ConversionException
$value mixed
$toType string
$possibleTypes array
return ConversionException

conversionFailedSerialization() public static method

public static conversionFailedSerialization ( $value, $format, $error )