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

Public Member Functions

 __construct ($error=null, $code=0)
 
- Public Member Functions inherited from Zend_Db_Statement_Exception
 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
 

Additional Inherited Members

- Protected Member Functions inherited from Zend_Exception
 _getPrevious ()
 

Detailed Description

Definition at line 36 of file Exception.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 41 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  $this->message .= substr($error['sqltext'], 0, $error['offset']);
49  $this->message .= "*";
50  $this->message .= substr($error['sqltext'], $error['offset']);
51  }
52  $this->code = $error['code'];
53  }
54  if (!$this->code && $code) {
55  $this->code = $code;
56  }
57  }

Field Documentation

◆ $code

$code = 0
protected

Definition at line 39 of file Exception.php.

◆ $message

$message = 'Unknown exception'
protected

Definition at line 38 of file Exception.php.


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