mediatekformation

ConversionException extends Exception
in package

Conversion Exception is thrown when the database to PHP conversion fails.

Tags
psalm-immutable

Table of Contents

conversionFailed()  : ConversionException
Thrown when a Database to Doctrine Type Conversion fails.
conversionFailedFormat()  : ConversionException
Thrown when a Database to Doctrine Type Conversion fails and we can make a statement about the expected format.
conversionFailedInvalidType()  : ConversionException
Thrown when the PHP value passed to the converter was not of the expected type.
conversionFailedSerialization()  : ConversionException
conversionFailedUnserialization()  : self
driverRequired()  : self
invalidDriverClass()  : self
invalidPlatformType()  : self
invalidPlatformVersionSpecified()  : self
Returns a new instance for an invalid specified platform version.
invalidWrapperClass()  : self
noColumnsSpecifiedForTable()  : self
notSupported()  : self
typeAlreadyRegistered()  : self
typeExists()  : self
typeNotFound()  : self
typeNotRegistered()  : self
unknownColumnType()  : self
unknownDriver()  : self

Methods

conversionFailed()

Thrown when a Database to Doctrine Type Conversion fails.

public static conversionFailed(string $value, string $toType[, Throwable|null $previous = null ]) : ConversionException
Parameters
$value : string
$toType : string
$previous : Throwable|null = null
Return values
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[, Throwable|null $previous = null ]) : ConversionException
Parameters
$value : string
$toType : string
$expectedFormat : string
$previous : Throwable|null = null
Return values
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<string|int, string> $possibleTypes[, Throwable|null $previous = null ]) : ConversionException
Parameters
$value : mixed
$toType : string
$possibleTypes : array<string|int, string>
$previous : Throwable|null = null
Return values
ConversionException

conversionFailedUnserialization()

public static conversionFailedUnserialization(string $format, string $error) : self
Parameters
$format : string
$error : string
Return values
self

driverRequired()

public static driverRequired([string|null $url = null ]) : self
Parameters
$url : string|null = null

The URL that was provided in the connection parameters (if any).

Return values
self

invalidDriverClass()

public static invalidDriverClass(string $driverClass) : self
Parameters
$driverClass : string
Return values
self

invalidPlatformType()

public static invalidPlatformType(mixed $invalidPlatform) : self
Parameters
$invalidPlatform : mixed
Return values
self

invalidPlatformVersionSpecified()

Returns a new instance for an invalid specified platform version.

public static invalidPlatformVersionSpecified(string $version, string $expectedFormat) : self
Parameters
$version : string

The invalid platform version given.

$expectedFormat : string

The expected platform version format.

Return values
self

invalidWrapperClass()

public static invalidWrapperClass(string $wrapperClass) : self
Parameters
$wrapperClass : string
Return values
self

noColumnsSpecifiedForTable()

public static noColumnsSpecifiedForTable(string $tableName) : self
Parameters
$tableName : string
Return values
self

notSupported()

public static notSupported(string $method) : self
Parameters
$method : string
Return values
self

typeAlreadyRegistered()

public static typeAlreadyRegistered(Type $type) : self
Parameters
$type : Type
Return values
self

typeExists()

public static typeExists(string $name) : self
Parameters
$name : string
Return values
self

typeNotFound()

public static typeNotFound(string $name) : self
Parameters
$name : string
Return values
self

typeNotRegistered()

public static typeNotRegistered(Type $type) : self
Parameters
$type : Type
Return values
self

unknownColumnType()

public static unknownColumnType(string $name) : self
Parameters
$name : string
Return values
self

unknownDriver()

public static unknownDriver(string $unknownDriverName, array<string|int, string> $knownDrivers) : self
Parameters
$unknownDriverName : string
$knownDrivers : array<string|int, string>
Return values
self

Search results