PDOEXCEPTION(3) 1 PDOEXCEPTION(3)
The PDOException class
INTRODUCTION
Represents an error raised by PDO. You should not throw a PDOException from your own code. See Exceptions for more information about
Exceptions in PHP.
CLASS SYNOPSIS
PDOException
PDOExceptionextends
RuntimeException
Properties
o public array$errorInfo
o protected string$code
Inherited properties
o protected string$message
o protected int$code
o protected string$file
o protected int$line
Inherited methods
o finalpublic string Exception::getMessage (void )
o finalpublic Exception Exception::getPrevious (void )
o finalpublic mixed Exception::getCode (void )
o finalpublic string Exception::getFile (void )
o finalpublic int Exception::getLine (void )
o finalpublic array Exception::getTrace (void )
o finalpublic string Exception::getTraceAsString (void )
o public string Exception::__toString (void )
o finalprivate void Exception::__clone (void )
PROPERTIES
o $errorInfo
- Corresponds to PDO.errorInfo(3) or PDOStatement.errorInfo(3)
o $code
- SQLSTATE error code. Use Exception.getCode(3) to access it.
PHP Documentation Group PDOEXCEPTION(3)