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

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from Zend_Exception
 _getPrevious ()
 

Detailed Description

Definition at line 37 of file Exception.php.

Member Function Documentation

◆ getChainedException()

getChainedException ( )
Returns
Exception|null

Definition at line 52 of file Exception.php.

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

◆ hasChainedException()

hasChainedException ( )

Check if this general exception has a specific database driver specific exception nested inside.

Returns
bool

Definition at line 44 of file Exception.php.

45  {
46  return ($this->getPrevious() !== null);
47  }

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