\RedBeanPHP\RedExceptionSQL

SQL Exception.

Represents a generic database exception independent of the underlying driver.

Summary

Methods
Properties
Constants
getDriverDetails()
setDriverDetails()
getSQLState()
setSQLState()
__toString()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$sqlState
$driverDetails
N/A

Properties

$sqlState

$sqlState : string

Type

string

$driverDetails

$driverDetails : array

Type

array

Methods

getDriverDetails()

getDriverDetails() : array

Returns

array

setDriverDetails()

setDriverDetails(array  $driverDetails) : void

Parameters

array $driverDetails

getSQLState()

getSQLState() : string

Returns an ANSI-92 compliant SQL state.

Returns

string

setSQLState()

setSQLState(string  $sqlState) : void

Returns the raw SQL STATE, possibly compliant with ANSI SQL error codes - but this depends on database driver.

Parameters

string $sqlState

SQL state error code

__toString()

__toString() : string

To String prints both code and SQL state.

Returns

string