Class: Doctrine_Connection_Firebird_Exception
Source Location: /Doctrine/Connection/Firebird/Exception.phpClass Doctrine_Connection_Firebird_Exception
Class Overview
Doctrine_Connection_Firebird_Exception Located in /Doctrine/Connection/Firebird/Exception.php [line 35] Exception | --Doctrine_Exception | --Doctrine_Connection_Exception | --Doctrine_Connection_Firebird_ExceptionAuthor(s):
|
[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties | Inherited Methods | Inherited Constants |
---|---|---|
Inherited From Doctrine_Connection_Exception Inherited From Doctrine_Exception Inherited From Exception (Internal Class)
|
Inherited From Doctrine_Connection_Exception
Inherited From Doctrine_Exception
Inherited From Exception (Internal Class)
|
[ Top ]
Property Summary
Method Summary
array | processErrorInfo() | This method checks if native error code/message can be converted into a portable code and then adds this portable error code to errorInfo array and returns the modified array |
[ Top ]
Properties
static array
$errorCodeMap
= array(
-104 => Doctrine::ERR_SYNTAX,
-150 => Doctrine::ERR_ACCESS_VIOLATION,
-151 => Doctrine::ERR_ACCESS_VIOLATION,
-155 => Doctrine::ERR_NOSUCHTABLE,
-157 => Doctrine::ERR_NOSUCHFIELD,
-158 => Doctrine::ERR_VALUE_COUNT_ON_ROW,
-170 => Doctrine::ERR_MISMATCH,
-171 => Doctrine::ERR_MISMATCH,
-172 => Doctrine::ERR_INVALID,
// -204 => // Covers too many errors, need to use regex on msg
-205 => Doctrine::ERR_NOSUCHFIELD,
-206 => Doctrine::ERR_NOSUCHFIELD,
-208 => Doctrine::ERR_INVALID,
-219 => Doctrine::ERR_NOSUCHTABLE,
-297 => Doctrine::ERR_CONSTRAINT,
-303 => Doctrine::ERR_INVALID,
-413 => Doctrine::ERR_INVALID_NUMBER,
-530 => Doctrine::ERR_CONSTRAINT,
-551 => Doctrine::ERR_ACCESS_VIOLATION,
-552 => Doctrine::ERR_ACCESS_VIOLATION,
// -607 => // Covers too many errors, need to use regex on msg
-625 => Doctrine::ERR_CONSTRAINT_NOT_NULL,
-803 => Doctrine::ERR_CONSTRAINT,
-804 => Doctrine::ERR_VALUE_COUNT_ON_ROW,
-904 => Doctrine::ERR_CONNECT_FAILED,
-922 => Doctrine::ERR_NOSUCHDB,
-923 => Doctrine::ERR_CONNECT_FAILED,
-924 => Doctrine::ERR_CONNECT_FAILED
) [line 41]
API Tags:-104 => Doctrine::ERR_SYNTAX,
-150 => Doctrine::ERR_ACCESS_VIOLATION,
-151 => Doctrine::ERR_ACCESS_VIOLATION,
-155 => Doctrine::ERR_NOSUCHTABLE,
-157 => Doctrine::ERR_NOSUCHFIELD,
-158 => Doctrine::ERR_VALUE_COUNT_ON_ROW,
-170 => Doctrine::ERR_MISMATCH,
-171 => Doctrine::ERR_MISMATCH,
-172 => Doctrine::ERR_INVALID,
// -204 => // Covers too many errors, need to use regex on msg
-205 => Doctrine::ERR_NOSUCHFIELD,
-206 => Doctrine::ERR_NOSUCHFIELD,
-208 => Doctrine::ERR_INVALID,
-219 => Doctrine::ERR_NOSUCHTABLE,
-297 => Doctrine::ERR_CONSTRAINT,
-303 => Doctrine::ERR_INVALID,
-413 => Doctrine::ERR_INVALID_NUMBER,
-530 => Doctrine::ERR_CONSTRAINT,
-551 => Doctrine::ERR_ACCESS_VIOLATION,
-552 => Doctrine::ERR_ACCESS_VIOLATION,
// -607 => // Covers too many errors, need to use regex on msg
-625 => Doctrine::ERR_CONSTRAINT_NOT_NULL,
-803 => Doctrine::ERR_CONSTRAINT,
-804 => Doctrine::ERR_VALUE_COUNT_ON_ROW,
-904 => Doctrine::ERR_CONNECT_FAILED,
-922 => Doctrine::ERR_NOSUCHDB,
-923 => Doctrine::ERR_CONNECT_FAILED,
-924 => Doctrine::ERR_CONNECT_FAILED
) [line 41]
Access: | protected |
[ Top ]
static array
$errorRegexps
= array(
'/generator .* is not defined/'
=> Doctrine::ERR_SYNTAX, // for compat. w ibase_errcode()
'/table.*(not exist|not found|unknown)/i'
=> Doctrine::ERR_NOSUCHTABLE,
'/table .* already exists/i'
=> Doctrine::ERR_ALREADY_EXISTS,
'/unsuccessful metadata update .* failed attempt to store duplicate value/i'
=> Doctrine::ERR_ALREADY_EXISTS,
'/unsuccessful metadata update .* not found/i'
=> Doctrine::ERR_NOT_FOUND,
'/validation error for column .* value "\*\*\* null/i'
=> Doctrine::ERR_CONSTRAINT_NOT_NULL,
'/violation of [\w ]+ constraint/i'
=> Doctrine::ERR_CONSTRAINT,
'/conversion error from string/i'
=> Doctrine::ERR_INVALID_NUMBER,
'/no permission for/i'
=> Doctrine::ERR_ACCESS_VIOLATION,
'/arithmetic exception, numeric overflow, or string truncation/i'
=> Doctrine::ERR_INVALID,
'/table unknown/i'
=> Doctrine::ERR_NOSUCHTABLE,
) [line 75]
API Tags:'/generator .* is not defined/'
=> Doctrine::ERR_SYNTAX, // for compat. w ibase_errcode()
'/table.*(not exist|not found|unknown)/i'
=> Doctrine::ERR_NOSUCHTABLE,
'/table .* already exists/i'
=> Doctrine::ERR_ALREADY_EXISTS,
'/unsuccessful metadata update .* failed attempt to store duplicate value/i'
=> Doctrine::ERR_ALREADY_EXISTS,
'/unsuccessful metadata update .* not found/i'
=> Doctrine::ERR_NOT_FOUND,
'/validation error for column .* value "\*\*\* null/i'
=> Doctrine::ERR_CONSTRAINT_NOT_NULL,
'/violation of [\w ]+ constraint/i'
=> Doctrine::ERR_CONSTRAINT,
'/conversion error from string/i'
=> Doctrine::ERR_INVALID_NUMBER,
'/no permission for/i'
=> Doctrine::ERR_ACCESS_VIOLATION,
'/arithmetic exception, numeric overflow, or string truncation/i'
=> Doctrine::ERR_INVALID,
'/table unknown/i'
=> Doctrine::ERR_NOSUCHTABLE,
) [line 75]
Access: | protected |
[ Top ]
Methods
processErrorInfo [line 110]
|
This method checks if native error code/message can be converted into a portable code and then adds this portable error code to errorInfo array and returns the modified array
the portable error code is added at the end of array
Parameters:array | $errorInfo: | error info array |
API Tags:
Access: | public |
Information Tags:
Since: | 1.0 |
[ Top ]