DatabaseException
class DatabaseException extends Exception (View source)
Error class for database exceptions
Methods
string
getSQL()
Returns the SQL that generated this error
array
getParameters()
The parameters given for this query, if any
__construct(string $message = '', int $code = 0, Exception $previous = null, string $sql = null, array $parameters = array())
Constructs the database exception
Details
string
getSQL()
Returns the SQL that generated this error
array
getParameters()
The parameters given for this query, if any
__construct(string $message = '', int $code = 0, Exception $previous = null, string $sql = null, array $parameters = array())
Constructs the database exception