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_Sqlite_Exception

Doctrine_Connection_Sqlite_Exception

Exception
Extended by Doctrine_Exception
Extended by Doctrine_Connection_Exception
Extended by Doctrine_Connection_Sqlite_Exception
Package: Doctrine\Connection
License: LGPL
Author: Konsta Vesterinen <kvesteri@cc.hut.fi>
Author: Lukas Smith <smith@pooteeweet.org> (PEAR MDB2 library)
Version: $Revision: 7490 $
Since: 1.0
Link: www.doctrine-project.org
Located at Connection/Sqlite/Exception.php
Methods summary
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

See

Doctrine_Core::ERR_* constants
Doctrine_Connection::$portableCode

Overrides

Doctrine_Connection_Exception::processErrorInfo()
Methods inherited from Doctrine_Connection_Exception
errorMessage(), getPortableCode(), getPortableMessage()
Methods inherited from Exception
__construct(), __toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Properties summary
protected static array $errorRegexps

$errorRegexps an array that is used for determining portable
error code from a native database error message

$errorRegexps an array that is used for determining portable error code from a native database error message

#array( '/^no such table:/' => Doctrine_Core::ERR_NOSUCHTABLE, '/^no such index:/' => Doctrine_Core::ERR_NOT_FOUND, '/^(table|index) .* already exists$/' => Doctrine_Core::ERR_ALREADY_EXISTS, '/PRIMARY KEY must be unique/i' => Doctrine_Core::ERR_CONSTRAINT, '/is not unique/' => Doctrine_Core::ERR_CONSTRAINT, '/columns .* are not unique/i' => Doctrine_Core::ERR_CONSTRAINT, '/uniqueness constraint failed/' => Doctrine_Core::ERR_CONSTRAINT, '/may not be NULL/' => Doctrine_Core::ERR_CONSTRAINT_NOT_NULL, '/^no such column:/' => Doctrine_Core::ERR_NOSUCHFIELD, '/column not present in both tables/i' => Doctrine_Core::ERR_NOSUCHFIELD, '/^near ".*": syntax error$/' => Doctrine_Core::ERR_SYNTAX, '/[0-9]+ values for [0-9]+ columns/i' => Doctrine_Core::ERR_VALUE_COUNT_ON_ROW, )
Properties inherited from Doctrine_Connection_Exception
$errorMessages, $portableCode
Properties inherited from Doctrine_Exception
$_errorMessages
Properties inherited from Exception
$code, $file, $line, $message
Doctrine 1 API documentation generated by ApiGen 3.0dev