Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Exception.php
Go to the documentation of this file.
1 <?php
26 #require_once 'Zend/Db/Exception.php';
27 
36 {
37  protected $_chainedException = null;
38 
39  public function __construct($message = '', $code = 0, Exception $e = null)
40  {
41  if ($e && (0 === $code)) {
42  $code = $e->getCode();
43  }
44  parent::__construct($message, $code, $e);
45  }
46 
47  public function hasChainedException()
48  {
49  return ($this->getPrevious() !== null);
50  }
51 
52  public function getChainedException()
53  {
54  return $this->getPrevious();
55  }
56 
57 }
__construct($message='', $code=0, Exception $e=null)
Definition: Exception.php:39
$message
$code
Definition: info.phtml:12