Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
Zend_Db_Adapter_Oracle_Exception Class Reference
Inheritance diagram for Zend_Db_Adapter_Oracle_Exception:
Zend_Db_Adapter_Exception Zend_Db_Exception Zend_Exception

Public Member Functions

 __construct ($error=null, $code=0)
 
- Public Member Functions inherited from Zend_Db_Adapter_Exception
 __construct ($message='', $code=0, Exception $e=null)
 
 hasChainedException ()
 
 getChainedException ()
 
- Public Member Functions inherited from Zend_Exception
 __construct ($msg='', $code=0, Exception $previous=null)
 
 __call ($method, array $args)
 
 __toString ()
 

Protected Attributes

 $message = 'Unknown exception'
 
 $code = 0
 
- Protected Attributes inherited from Zend_Db_Adapter_Exception
 $_chainedException = null
 

Additional Inherited Members

- Protected Member Functions inherited from Zend_Exception
 _getPrevious ()
 

Detailed Description

Definition at line 37 of file Exception.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $error = null,
  $code = 0 
)

Definition at line 42 of file Exception.php.

42  {
43  if (is_array($error)) {
44  if (!isset($error['offset'])) {
45  $this->message = $error['code'] .' '. $error['message'];
46  } else {
47  $this->message = $error['code'] .' '. $error['message']." "
48  . substr($error['sqltext'], 0, $error['offset'])
49  . "*"
50  . substr($error['sqltext'], $error['offset']);
51  }
52  $this->code = $error['code'];
53  } else if (is_string($error)) {
54  $this->message = $error;
55  }
56  if (!$this->code && $code) {
57  $this->code = $code;
58  }
59  }

Field Documentation

◆ $code

$code = 0
protected

Definition at line 40 of file Exception.php.

◆ $message

$message = 'Unknown exception'
protected

Definition at line 39 of file Exception.php.


The documentation for this class was generated from the following file: