Documentation

CQueryException extends CDbmsException
in package

Exception class for database query errors.

Table of Contents

Properties

$sql  : string

Methods

__construct()  : mixed
Constructor.
GetSql()  : string
Gets the SQL query that caused the error.

Properties

Methods

__construct()

Constructor.

public __construct([string $message = "" ][, string $sql = "" ][, int $code = 0 ][, Throwable|null $previous = null ]) : mixed
Parameters
$message : string = ""

Exception message

$sql : string = ""

The SQL query that caused the error

$code : int = 0

Exception code

$previous : Throwable|null = null

Previous exception for chaining

GetSql()

Gets the SQL query that caused the error.

public GetSql() : string
Return values
string —

The SQL query


        
On this page

Search results