class Doctrine_Connection_Exception extends Doctrine_Exception (View source)

Doctrine_Exception

Properties

static protected array $_errorMessages from Doctrine_Exception
static protected array $errorMessages
protected integer $portableCode

Methods

string
errorMessage(int|array $value = null)

Return a textual error message for a Doctrine error code

integer
getPortableCode()

getPortableCode returns portable error code

string
getPortableMessage()

getPortableMessage returns portable error message

boolean
processErrorInfo(array $errorInfo)

This method checks if native error code/message can be converted into a portable code and then adds this portable error code to $portableCode field

Details

string errorMessage(int|array $value = null)

Return a textual error message for a Doctrine error code

Parameters

int|array $value integer error code, null to get the current error code-message map, or an array with a new error code-message map

Return Value

string error message

integer getPortableCode()

getPortableCode returns portable error code

Return Value

integer portable error code

string getPortableMessage()

getPortableMessage returns portable error message

Return Value

string portable error message

boolean processErrorInfo(array $errorInfo)

This method checks if native error code/message can be converted into a portable code and then adds this portable error code to $portableCode field

Parameters

array $errorInfo error info array

Return Value

boolean whether or not the error info processing was successfull (the process is successfull if portable error code was found)