class ConversionException extends DBALException (View source)

Methods

static DBALException
notSupported(string $method)

No description

static 
invalidPlatformSpecified()

No description

static 
invalidPlatformType(mixed $invalidPlatform)

No description

static DBALException
invalidPlatformVersionSpecified(string $version, string $expectedFormat)

Returns a new instance for an invalid specified platform version.

static DBALException
invalidPdoInstance()

No description

static DBALException
driverRequired(string|null $url = null)

No description

static DBALException
unknownDriver(string $unknownDriverName, array $knownDrivers)

No description

static DBALException
driverExceptionDuringQuery(Driver $driver, Exception $driverEx, string $sql, array $params = array())

No description

static DBALException
driverException(Driver $driver, Exception $driverEx)

No description

static DBALException
invalidWrapperClass(string $wrapperClass)

No description

static DBALException
invalidDriverClass(string $driverClass)

No description

static DBALException
invalidTableName(string $tableName)

No description

static DBALException
noColumnsSpecifiedForTable(string $tableName)

No description

static DBALException
limitOffsetInvalid()

No description

static DBALException
typeExists(string $name)

No description

static DBALException
unknownColumnType(string $name)

No description

static DBALException
typeNotFound(string $name)

No description

conversionFailed(string $value, string $toType)

Thrown when a Database to Doctrine Type Conversion fails.

conversionFailedFormat(string $value, string $toType, string $expectedFormat, Exception $previous = null)

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)

Thrown when the PHP value passed to the converter was not of the expected type.

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

No description

Details

static DBALException notSupported(string $method)

Parameters

string $method

Return Value

DBALException

static invalidPlatformSpecified()

static invalidPlatformType(mixed $invalidPlatform)

Parameters

mixed $invalidPlatform

static DBALException invalidPlatformVersionSpecified(string $version, string $expectedFormat)

Returns a new instance for an invalid specified platform version.

Parameters

string $version The invalid platform version given.
string $expectedFormat The expected platform version format.

Return Value

DBALException

static DBALException invalidPdoInstance()

Return Value

DBALException

static DBALException driverRequired(string|null $url = null)

Parameters

string|null $url The URL that was provided in the connection parameters (if any).

Return Value

DBALException

static DBALException unknownDriver(string $unknownDriverName, array $knownDrivers)

Parameters

string $unknownDriverName
array $knownDrivers

Return Value

DBALException

static DBALException driverExceptionDuringQuery(Driver $driver, Exception $driverEx, string $sql, array $params = array())

Parameters

Driver $driver
Exception $driverEx
string $sql
array $params

Return Value

DBALException

static DBALException driverException(Driver $driver, Exception $driverEx)

Parameters

Driver $driver
Exception $driverEx

Return Value

DBALException

static DBALException invalidWrapperClass(string $wrapperClass)

Parameters

string $wrapperClass

Return Value

DBALException

static DBALException invalidDriverClass(string $driverClass)

Parameters

string $driverClass

Return Value

DBALException

static DBALException invalidTableName(string $tableName)

Parameters

string $tableName

Return Value

DBALException

static DBALException noColumnsSpecifiedForTable(string $tableName)

Parameters

string $tableName

Return Value

DBALException

static DBALException limitOffsetInvalid()

Return Value

DBALException

static DBALException typeExists(string $name)

Parameters

string $name

Return Value

DBALException

static DBALException unknownColumnType(string $name)

Parameters

string $name

Return Value

DBALException

static DBALException typeNotFound(string $name)

Parameters

string $name

Return Value

DBALException

static ConversionException conversionFailed(string $value, string $toType)

Thrown when a Database to Doctrine Type Conversion fails.

Parameters

string $value
string $toType

Return Value

ConversionException

static ConversionException conversionFailedFormat(string $value, string $toType, string $expectedFormat, Exception $previous = null)

Thrown when a Database to Doctrine Type Conversion fails and we can make a statement about the expected format.

Parameters

string $value
string $toType
string $expectedFormat
Exception $previous

Return Value

ConversionException

static ConversionException conversionFailedInvalidType(mixed $value, string $toType, array $possibleTypes)

Thrown when the PHP value passed to the converter was not of the expected type.

Parameters

mixed $value
string $toType
array $possibleTypes

Return Value

ConversionException

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

Parameters

$value
$format
$error