A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.yiiframework.com/doc/api/2.0/yii-db-integrityexception below:

IntegrityException, yii\db\IntegrityException | API Documentation for Yii 2.0

Class yii\db\IntegrityException

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

Method Details

Hide inherited methods

__construct()

public method public void __construct ( $message, $errorInfo = [], $code '', $previous null ) $message string

PDO error message

$errorInfo array

PDO error info

$code string

PDO error code

$previous Throwable|null

The previous exception used for the exception chaining.

Source code

                public function __construct($message, $errorInfo = [], $code = '', $previous = null)
{
    parent::__construct($message, 0, $previous);
    $this->errorInfo = $errorInfo;
    $this->code = $code;
}

            

__toString()

public method

Source code

                public function __toString()
{
    return parent::__toString() . PHP_EOL
    . 'Additional Information:' . PHP_EOL . print_r($this->errorInfo, true);
}

            

Source code

                public function getName()
{
    return 'Integrity constraint violation';
}

            

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4