PHP Класс Doctrine\DBAL\Types\ConversionException

Наследование: extends Doctrine\DBAL\DBALException
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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 )

Описание методов

conversionFailed() публичный статический Метод

Thrown when a Database to Doctrine Type Conversion fails.
public static conversionFailed ( string $value, string $toType ) : ConversionException
$value string
$toType string
Результат ConversionException

conversionFailedFormat() публичный статический Метод

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
Результат ConversionException

conversionFailedInvalidType() публичный статический Метод

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
Результат ConversionException

conversionFailedSerialization() публичный статический Метод

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