Skip to content
PHP Ecosystem
Explore

IntegrityException

API reference › yii › db › IntegrityException

classyii\db\IntegrityException
ExtendsException » yii\base\Exception » Exception
Since2.0
Sourceframework/db/IntegrityException.php

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

PropertyTypeDescriptionDefined by
$errorInfoarrayThe error info provided by a PDO exception. Default: [].Exception
MethodDescriptionDefined by
__construct()Constructor.Exception
__toString()Exception
getName()IntegrityException
public function getName(): string

Returns

string: The user-friendly name of this exception