Class: Doctrine_Connection_Firebird_Exception

Source Location: /Doctrine/Connection/Firebird/Exception.php

Class 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_Exception
Author(s): Information Tags:
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL

Properties

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Doctrine_Connection_Exception

Doctrine_Connection_Exception::$errorMessages
Doctrine_Connection_Exception::$portableCode

Inherited From Doctrine_Exception

Doctrine_Exception::$_errorMessages

Inherited From Exception (Internal Class)

$code
$file
$line
$message
$string
$trace

Inherited From Doctrine_Connection_Exception

Doctrine_Connection_Exception::errorMessage()
Return a textual error message for a Doctrine error code
Doctrine_Connection_Exception::getPortableCode()
getPortableCode returns portable error code
Doctrine_Connection_Exception::getPortableMessage()
getPortableMessage returns portable error message

Inherited From Doctrine_Exception

Doctrine_Exception::errorMessage()
Return a textual error message for a Doctrine error code

Inherited From Exception (Internal Class)

constructor __construct ( [$message = ], [$code = ] )
getCode ( )
getFile ( )
getLine ( )
getMessage ( )
getTrace ( )
getTraceAsString ( )
__clone ( )
__toString ( )

[ Top ]
Property Summary
static array   $errorCodeMap  
static array   $errorRegexps  

[ Top ]
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:
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:
Access:  protected


[ Top ]
Methods
processErrorInfo  [line 110]

  array processErrorInfo( $errorInfo  )

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 ]