class DriverException extends PDOException

Base class for all errors in the driver or SQL server.

Properties

$queryString
array|null $params

Methods

static DriverException
from(PDOException $src)

Creates a DriverException from a PDOException, preserving error info and stack trace location.

int|string|null
getDriverCode()

Returns the driver-specific error code, or null if not available.

string|null
getSqlState()

Returns the SQLSTATE error code, or null if not available.

string|null
getQueryString()

No description

array|null
getParameters()

No description

Details

at line 27
static DriverException from(PDOException $src)

Creates a DriverException from a PDOException, preserving error info and stack trace location.

Parameters

PDOException $src

Return Value

DriverException

at line 49
int|string|null getDriverCode()

Returns the driver-specific error code, or null if not available.

Return Value

int|string|null

at line 58
string|null getSqlState()

Returns the SQLSTATE error code, or null if not available.

Return Value

string|null

at line 64
string|null getQueryString()

No description

Return Value

string|null

at line 71
array|null getParameters()

No description

Return Value

array|null