PHP Class yii\db\Exception

Since: 2.0
Author: Qiang Xue ([email protected])
Inheritance: extends yii\base\Exception
Afficher le fichier Open project: yiisoft/yii2 Class Usage Examples

Méthodes publiques

Свойство Type Description
$errorInfo the error info provided by a PDO exception. This is the same as returned by PDO::errorInfo.

Méthodes publiques

Méthode Description
__construct ( string $message, array $errorInfo = [], integer $code, Exception $previous = null ) Constructor.
__toString ( ) : string
getName ( ) : string

Method Details

__construct() public méthode

Constructor.
public __construct ( string $message, array $errorInfo = [], integer $code, Exception $previous = null )
$message string PDO error message
$errorInfo array PDO error info
$code integer PDO error code
$previous Exception The previous exception used for the exception chaining.

__toString() public méthode

public __toString ( ) : string
Résultat string readable representation of exception

getName() public méthode

public getName ( ) : string
Résultat string the user-friendly name of this exception

Property Details

$errorInfo public_oe property

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