CDbException
CDbException represents an exception that is caused by some DB-related operations.
Protected Properties
Hide inherited properties
Property | Type | Description | Defined By |
code |
|
|
Exception |
file |
|
|
Exception |
line |
|
|
Exception |
message |
|
|
Exception |
Public Methods
Hide inherited methods
Method | Description | Defined By |
__construct() |
Constructor. |
CDbException |
__toString() |
|
Exception |
__wakeup() |
|
Exception |
getCode() |
|
Exception |
getFile() |
|
Exception |
getLine() |
|
Exception |
getMessage() |
|
Exception |
getPrevious() |
|
Exception |
getTrace() |
|
Exception |
getTraceAsString() |
|
Exception |
Property Details
public mixed $errorInfo;
the error info provided by a PDO exception. This is the same as returned
by PDO::errorInfo.
Method Details
public void __construct(string $message, integer $code=0, mixed $errorInfo=NULL)
|
$message |
string |
PDO error message |
$code |
integer |
PDO error code |
$errorInfo |
mixed |
PDO error info |
Source Code: framework/db/CDbException.php#33 (
show)
public function __construct($message,$code=0,$errorInfo=null)
{
$this->errorInfo=$errorInfo;
parent::__construct($message,$code);
}
Constructor.
Signup or Login in order to comment.