Class Doctrine_Connection_Sqlite_Exception
Doctrine_Connection_Sqlite_Exception
- Exception
-
Doctrine_Exception
-
Doctrine_Connection_Exception
-
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
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
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 |
errorMessage(),
getPortableCode(),
getPortableMessage()
|
__construct(),
__toString(),
__wakeup(),
getCode(),
getFile(),
getLine(),
getMessage(),
getPrevious(),
getTrace(),
getTraceAsString()
|
protected static
array
|
$errorRegexps
$errorRegexps an array that is used for determining portable |
# 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,
) |
$errorMessages,
$portableCode
|
$_errorMessages
|
$code,
$file,
$line,
$message
|