Overview

Packages

  • Doctrine
    • Access
    • Adapter
    • AuditLog
    • Builder
    • Cache
    • Cli
    • Collection
    • Column
    • Compiler
    • Configurable
    • Connection
    • Data
    • DataDict
    • Event
    • EventListener
    • Exception
    • Export
    • Expression
    • File
    • Formatter
    • Hook
    • Hydrate
    • I18n
    • Import
    • Inflector
    • IntegrityMapper
    • Lib
    • Locator
    • Locking
    • Manager
    • Migration
    • Node
    • Null
    • Overloadable
    • Pager
    • Parser
    • Plugin
    • Query
    • RawSql
    • Record
    • Relation
    • Search
    • Sequence
    • Table
    • Task
    • Template
    • Transaction
    • Tree
    • Util
    • Validator
    • View
  • None
  • PHP
  • symfony
    • yaml

Classes

  • Doctrine_Connection
  • Doctrine_Connection_Common
  • Doctrine_Connection_Db2
  • Doctrine_Connection_Mock
  • Doctrine_Connection_Module
  • Doctrine_Connection_Mssql
  • Doctrine_Connection_Mysql
  • Doctrine_Connection_Oracle
  • Doctrine_Connection_Pgsql
  • Doctrine_Connection_Profiler
  • Doctrine_Connection_Sqlite
  • Doctrine_Connection_Statement
  • Doctrine_Connection_UnitOfWork

Exceptions

  • Doctrine_Connection_Exception
  • Doctrine_Connection_Mssql_Exception
  • Doctrine_Connection_Mysql_Exception
  • Doctrine_Connection_Oracle_Exception
  • Doctrine_Connection_Pgsql_Exception
  • Doctrine_Connection_Profiler_Exception
  • Doctrine_Connection_Sqlite_Exception
  • Overview
  • Package
  • Class
  • Tree
  • Download

Class Doctrine_Connection_Exception

Doctrine_Exception

Exception
Extended by Doctrine_Exception
Extended by Doctrine_Connection_Exception

Direct known subclasses

Doctrine_Connection_Mssql_Exception, Doctrine_Connection_Mysql_Exception, Doctrine_Connection_Oracle_Exception, Doctrine_Connection_Pgsql_Exception, Doctrine_Connection_Sqlite_Exception
Package: Doctrine\Connection
License: LGPL
Author: Konsta Vesterinen <kvesteri@cc.hut.fi>
Version: $Revision: 7490 $
Since: 1.0
Link: www.doctrine-project.org
Located at Connection/Exception.php
Methods summary
public integer
# getPortableCode( )

getPortableCode returns portable error code

getPortableCode returns portable error code

Returns

integer
portable error code
public string
# getPortableMessage( )

getPortableMessage returns portable error message

getPortableMessage returns portable error message

Returns

string
portable error message
public string
# errorMessage( integer|array $value = null )

Return a textual error message for a Doctrine error code

Return a textual error message for a Doctrine error code

Parameters

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

Returns

string
error message, or false if the error code was not recognized

Overrides

Doctrine_Exception::errorMessage()
public 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

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

$errorInfo
error info array

Returns

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

Since

1.0
Methods inherited from Exception
__construct(), __toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Properties summary
protected static array $errorMessages

$errorMessages an array containing messages for portable error codes

$errorMessages an array containing messages for portable error codes

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

$portableCode portable error code

$portableCode portable error code

Since

1.0

See

Doctrine_Core::ERR_* constants
#
Properties inherited from Doctrine_Exception
$_errorMessages
Properties inherited from Exception
$code, $file, $line, $message
Doctrine 1 API documentation generated by ApiGen 3.0dev