Definition at line 37 of file Exception.php.
◆ __construct()
__construct |
( |
|
$error = null , |
|
|
|
$code = 0 |
|
) |
| |
Definition at line 42 of file Exception.php.
43 if (is_array($error)) {
44 if (!isset($error[
'offset'])) {
45 $this->message = $error[
'code'] .
' '. $error[
'message'];
47 $this->message = $error[
'code'] .
' '. $error[
'message'].
" " 48 . substr($error[
'sqltext'], 0, $error[
'offset'])
50 . substr($error[
'sqltext'], $error[
'offset']);
52 $this->code = $error[
'code'];
53 }
else if (is_string($error)) {
54 $this->message = $error;
56 if (!$this->code &&
$code) {
◆ $code
◆ $message
$message = 'Unknown exception' |
|
protected |
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Db/Adapter/Oracle/Exception.php