Class yii\db\IntegrityException

Inheritanceyii\db\IntegrityException » yii\db\Exception » yii\base\Exception » Exception
Available since version2.0
Source Code https://github.com/yiisoft/yii2/blob/master/framework/db/IntegrityException.php

Exception represents an exception that is caused by violation of DB constraints.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$errorInfo array The error info provided by a PDO exception. yii\db\Exception

Method Details

getName() public method

public string getName ( )
return string

The user-friendly name of this exception