Documentation

DBALException extends Exception
in package

Table of Contents

driverException()  : DBALException
driverExceptionDuringQuery()  : DBALException
driverRequired()  : DBALException
invalidDriverClass()  : DBALException
invalidPdoInstance()  : DBALException
invalidPlatformSpecified()  : DBALException
invalidPlatformVersionSpecified()  : DBALException
Returns a new instance for an invalid specified platform version.
invalidTableName()  : DBALException
invalidWrapperClass()  : DBALException
limitOffsetInvalid()  : DBALException
noColumnsSpecifiedForTable()  : DBALException
notSupported()  : DBALException
typeExists()  : DBALException
typeNotFound()  : DBALException
unknownColumnType()  : DBALException
unknownDriver()  : DBALException
formatParameters()  : string
Returns a human-readable representation of an array of parameters.

Methods

driverExceptionDuringQuery()

public static driverExceptionDuringQuery(Driver $driver, Exception $driverEx, string $sql[, array<string|int, mixed> $params = array() ]) : DBALException
Parameters
$driver : Driver
$driverEx : Exception
$sql : string
$params : array<string|int, mixed> = array()
Return values
DBALException

driverRequired()

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

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

Return values
DBALException

invalidPlatformVersionSpecified()

Returns a new instance for an invalid specified platform version.

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

The invalid platform version given.

$expectedFormat : string

The expected platform version format.

Return values
DBALException

unknownDriver()

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

formatParameters()

Returns a human-readable representation of an array of parameters.

private static formatParameters(array<string|int, mixed> $params) : string

This properly handles binary data by returning a hex representation.

Parameters
$params : array<string|int, mixed>
Return values
string

Search results