class SyntaxErrorException extends ServerException (View source)

Exception for a syntax error in a statement detected in the driver.

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 = [])

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

__construct(string $message, DriverException $driverException)

Constructor.

int|string|null
getErrorCode()

Returns the driver specific error code if given.

string|null
getSQLState()

Returns the SQLSTATE the driver was in at the time the error occurred, if given.

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 = [])

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

__construct(string $message, DriverException $driverException)

Constructor.

Parameters

string $message The exception message.
DriverException $driverException The DBAL driver exception to chain.

int|string|null getErrorCode()

Returns the driver specific error code if given.

Returns null if no error code was given by the driver.

Return Value

int|string|null

string|null getSQLState()

Returns the SQLSTATE the driver was in at the time the error occurred, if given.

Returns null if no SQLSTATE was given by the driver.

Return Value

string|null