Class: Doctrine_Exception

Source Location: /Doctrine/Exception.php

Class Doctrine_Exception

Class Overview

Doctrine_Exception

Located in /Doctrine/Exception.php [line 32]

Exception
   |
   --Doctrine_Exception
Author(s): Information Tags:
Version:  $Revision: 1344 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL

Properties

Methods

[ Top ]
Direct descendents
Child Class Description
Doctrine_Adapter_Exception Doctrine_Adapter_Exception
Doctrine_Cache_Exception Doctrine_Cache_Exception
Doctrine_Collection_Exception Doctrine_Collection_Exception
Doctrine_Compiler_Exception Doctrine_Compiler_Exception
Doctrine_Connection_Exception Doctrine_Exception
Doctrine_Connection_Profiler_Exception Doctrine_Connection_Profiler_Exception
Doctrine_DataDict_Exception Doctrine_DataDict_Exception
Doctrine_EventListener_Exception Doctrine_EventListener_Exception
Doctrine_Export_Exception Doctrine_Export_Exception
Doctrine_Expression_Exception Doctrine_Expression_Exception
Doctrine_Hydrate_Exception Doctrine_Hydrate_Exception
Doctrine_Import_Exception class Doctrine_Import_Exception
Doctrine_Locking_Exception Locking exception class
Doctrine_Manager_Exception Doctrine_Manager_Exception
Doctrine_Node_Exception Doctrine_Node_Exception
Doctrine_Query_Exception Doctrine_Query_Exception
Doctrine_RawSql_Exception Doctrine_RawSql_Exception
Doctrine_Record_Exception Doctrine_Exception
Doctrine_Relation_Exception Doctrine_Relation_Exception
Doctrine_Search_Exception Doctrine_Search_Exception
Doctrine_Sequence_Exception Doctrine_Sequence_Exception
Doctrine_Table_Exception thrown when user tries to initialize a new instance of Doctrine_Table, while there already exists an instance of that table
Doctrine_Table_Repository_Exception Doctrine_Table_Repository_Exception
Doctrine_Transaction_Exception Doctrine_Transaction_Exception
Doctrine_Tree_Exception Doctrine_Tree_Exception
Doctrine_Validator_Exception Doctrine_Validator_Exception
Doctrine_View_Exception Doctrine_Validator_Exception

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

Inherited From Exception (Internal Class)

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

Inherited From Exception (Internal Class)

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

[ Top ]
Property Summary
static array   $_errorMessages  

[ Top ]
Method Summary
string   errorMessage()   Return a textual error message for a Doctrine error code

[ Top ]
Properties
static array   $_errorMessages = array(
Doctrine::ERR => 'unknown error',
Doctrine::ERR_ALREADY_EXISTS => 'already exists',
Doctrine::ERR_CANNOT_CREATE => 'can not create',
Doctrine::ERR_CANNOT_ALTER => 'can not alter',
Doctrine::ERR_CANNOT_REPLACE => 'can not replace',
Doctrine::ERR_CANNOT_DELETE => 'can not delete',
Doctrine::ERR_CANNOT_DROP => 'can not drop',
Doctrine::ERR_CONSTRAINT => 'constraint violation',
Doctrine::ERR_CONSTRAINT_NOT_NULL=> 'null value violates not-null constraint',
Doctrine::ERR_DIVZERO => 'division by zero',
Doctrine::ERR_INVALID => 'invalid',
Doctrine::ERR_INVALID_DATE => 'invalid date or time',
Doctrine::ERR_INVALID_NUMBER => 'invalid number',
Doctrine::ERR_MISMATCH => 'mismatch',
Doctrine::ERR_NODBSELECTED => 'no database selected',
Doctrine::ERR_NOSUCHFIELD => 'no such field',
Doctrine::ERR_NOSUCHTABLE => 'no such table',
Doctrine::ERR_NOT_CAPABLE => 'Doctrine backend not capable',
Doctrine::ERR_NOT_FOUND => 'not found',
Doctrine::ERR_NOT_LOCKED => 'not locked',
Doctrine::ERR_SYNTAX => 'syntax error',
Doctrine::ERR_UNSUPPORTED => 'not supported',
Doctrine::ERR_VALUE_COUNT_ON_ROW => 'value count on row',
Doctrine::ERR_INVALID_DSN => 'invalid DSN',
Doctrine::ERR_CONNECT_FAILED => 'connect failed',
Doctrine::ERR_NEED_MORE_DATA => 'insufficient data supplied',
Doctrine::ERR_EXTENSION_NOT_FOUND=> 'extension not found',
Doctrine::ERR_NOSUCHDB => 'no such database',
Doctrine::ERR_ACCESS_VIOLATION => 'insufficient permissions',
Doctrine::ERR_LOADMODULE => 'error while including on demand module',
Doctrine::ERR_TRUNCATED => 'truncated',
Doctrine::ERR_DEADLOCK => 'deadlock detected',
)
[line 37]
API Tags:
Access:  protected


[ Top ]
Methods
errorMessage  [line 80]

  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

API Tags:
Return:  error message
Access:  public


Redefined in descendants as:

[ Top ]