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

Public Member Functions

 __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

 $_chainedException = null
 

Additional Inherited Members

- Protected Member Functions inherited from Zend_Exception
 _getPrevious ()
 

Detailed Description

Definition at line 35 of file Exception.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $message = '',
  $code = 0,
Exception  $e = null 
)

Definition at line 39 of file Exception.php.

40  {
41  if ($e && (0 === $code)) {
42  $code = $e->getCode();
43  }
44  parent::__construct($message, $code, $e);
45  }
$message
$code
Definition: info.phtml:12

Member Function Documentation

◆ getChainedException()

getChainedException ( )

Definition at line 52 of file Exception.php.

53  {
54  return $this->getPrevious();
55  }

◆ hasChainedException()

hasChainedException ( )

Definition at line 47 of file Exception.php.

48  {
49  return ($this->getPrevious() !== null);
50  }

Field Documentation

◆ $_chainedException

$_chainedException = null
protected

Definition at line 37 of file Exception.php.


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