SqlQueryException extends SqlException
Exception is thrown when database returns an error on query execution.
Table of Contents
Methods
- __construct() : mixed
- getDatabaseMessage() : string
- Returns database specific message provided to the constructor.
- getQuery() : string
- Returns text of the sql query.
Methods
__construct()
public
__construct([string $message = "" ][, string $databaseMessage = "" ][, string $query = "" ][, Throwable|null $previous = null ]) : mixed
Parameters
- $message : string = ""
-
Application message.
- $databaseMessage : string = ""
-
Database reason.
- $query : string = ""
-
Sql query text.
- $previous : Throwable|null = null
-
The previous exception used for the exception chaining.
getDatabaseMessage()
Returns database specific message provided to the constructor.
public
getDatabaseMessage() : string
Return values
stringgetQuery()
Returns text of the sql query.
public
getQuery() : string