Methods

Overload the constructor to allow an additional error code to be passed

__construct($message, $code, $previous, $dbcode) 

Parameters

$message

$code

$previous

$dbcode

Return the original database error code if given

getDbCode() 

 Properties

 

<p>The exception code Redefine the exception code property, as PDO uses alphanumeric codes</p>

$code : mixed

 

<p>The original databaase error code We also store the original error code of the underlying driver</p>

$dbcode : mixed