DatabaseException View code

Extends \LogicException

A special type of exception related to database queries.

package

CMS

Methods

__construct(string $msg, integer $number, string $sql, \CMSMS\Database\ConnectionSpec $connection) 

Constructor

Arguments

string $msg

The message string

integer $number

The error number

string $sql

The related SQL statement, if any

getSQL() : string

Get the SQL statement related to this exception.

Response

string

getConnectionSpec() : \CMSMS\Database\ConnectionSpec

Get the Connectionspec that was used when generating the error.