\cg_db_exception

A class to indicate a database query error.

Summary

Methods
Properties
Constants
__construct()
__toString()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(string $str, int $code, \Exception $parent)

Takes an exception message of the form [module]%%key[%%suffix] and format a language string

Parameters

string $str

The exception message

int $code

The exception code

\Exception $parent

a parent exception

__toString()

__toString()

Convert this exception to a string.