"Fossies" - the Fresh Open Source Software Archive

Member "yii-docs-1.1.24.a5ab20/api/CDbException.html" (7 Jun 2021, 8363 Bytes) of package /linux/www/yii-docs-1.1.24.a5ab20.tar.gz:

Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the project site itself.

Yii Framework v1.1.24 Class Reference


Package system.db
Inheritance class CDbException » CException » Exception
Implements Throwable
Since 1.0
Source Code framework/db/CDbException.php
CDbException represents an exception that is caused by some DB-related operations.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
errorInfo mixed the error info provided by a PDO exception. CDbException

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
code Exception
file Exception
line Exception
message Exception

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Constructor. CDbException
__toString() Exception
__wakeup() Exception
getCode() Exception
getFile() Exception
getLine() Exception
getMessage() Exception
getPrevious() Exception
getTrace() Exception
getTraceAsString() Exception

Property Details

errorInfo property (available since v1.1.4)
public mixed $errorInfo;

the error info provided by a PDO exception. This is the same as returned by PDO::errorInfo.

Method Details

__construct() method
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)


© 2008-2013 by Yii Software LLC
All Rights Reserved.