class DriverException extends Exception

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

Methods

static DriverException
from(DriverException $e)

No description

__construct(string $message, string|null $sqlState = null, int $code = 0, SqlLiteral|null $query = null, Throwable|null $previous = null)

No description

int
getDriverCode() deprecated

No description

string|null
getSqlState()

No description

SqlLiteral|null
getQuery()

No description

string|null
getQueryString() deprecated

No description

array|null
getParameters() deprecated

No description

Details

at line 18
static DriverException from(DriverException $e)

No description

Parameters

DriverException $e

Return Value

DriverException

at line 24
__construct(string $message, string|null $sqlState = null, int $code = 0, SqlLiteral|null $query = null, Throwable|null $previous = null)

No description

Parameters

string $message
string|null $sqlState
int $code
SqlLiteral|null $query
Throwable|null $previous

at line 36
int getDriverCode() deprecated

deprecated use getCode()

No description

Return Value

int

at line 42
string|null getSqlState()

No description

Return Value

string|null

at line 48
SqlLiteral|null getQuery()

No description

Return Value

SqlLiteral|null

at line 55
string|null getQueryString() deprecated

deprecated use getQuery()->getSql()

No description

Return Value

string|null

at line 62
array|null getParameters() deprecated

deprecated use getQuery()->getParameters()

No description

Return Value

array|null