SqlException
extends RuntimeException
in package
The SQL exception class
This exception is thrown when an occurred caused by the SQL DBMS (or DBMS tools).
Table of Contents
Properties
- $action : string|null
- Action in progress while getting this exception
Methods
- __construct() : mixed
- Constructor
- __toString() : string
- getAction() : string|null
- Get the action
- getReport() : string
- Get the exception as report
- getText() : string
- Get the exception as report
Properties
$action
Action in progress while getting this exception
protected
string|null
$action
Methods
__construct()
Constructor
public
__construct([string|null $message = null ][, string|null $action = null ][, PDOException|null $original = null ]) : mixed
Parameters
- $message : string|null = null
- $action : string|null = null
- $original : PDOException|null = null
__toString()
public
__toString() : string
Return values
stringgetAction()
Get the action
public
getAction() : string|null
Return values
string|nullgetReport()
Get the exception as report
public
getReport() : string
Return values
stringgetText()
Get the exception as report
public
getText() : string