Exception represents an exception that is caused by some DB-related operations.
Property Details Method Details__construct()
public methodConstructor.
public void __construct ( $message, $errorInfo = [], $code = '', $previous = null ) $message stringPDO error message
$errorInfo arrayPDO error info
$code stringPDO error code
$previous Throwable|nullThe previous exception used for the exception chaining.
public function __construct($message, $errorInfo = [], $code = '', $previous = null)
{
parent::__construct($message, 0, $previous);
$this->errorInfo = $errorInfo;
$this->code = $code;
}
__toString()
public method public function __toString()
{
return parent::__toString() . PHP_EOL
. 'Additional Information:' . PHP_EOL . print_r($this->errorInfo, true);
}
public function getName()
{
return 'Database Exception';
}
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