0 follower

Final Class Yiisoft\Db\Exception\InvalidConfigException

InheritanceYiisoft\Db\Exception\InvalidConfigException » Yiisoft\Db\Exception\Exception » Exception
ImplementsStringable

Represents an exception caused by the wrong object configuration.

Public Properties

Hide inherited properties

Property Type Description Defined By
$errorInfo array|null Yiisoft\Db\Exception\Exception

Method Details

Hide inherited methods

__construct() public method
public mixed __construct ( string $message, array|null $errorInfo = [], Exception|null $previous null )
$message string
$errorInfo array|null
$previous Exception|null

                public function __construct(string $message, public ?array $errorInfo = [], ?\Exception $previous = null)
{
    parent::__construct($message, 0, $previous);
}

            
__toString() public method
public string __toString ( )
return string

Readable representation of exception.

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