/** * Return the status code of the nested exception, if any. * * @return integer */ public function getStatusCode() { $nestedException = $this->getPrevious(); if ($nestedException !== NULL && $nestedException instanceof \TYPO3\Flow\Exception) { return $nestedException->getStatusCode(); } return parent::getStatusCode(); }
/** * @param string $message * @param int $code * @param \Exception $previous * @param object $result CouchDB result */ public function __construct($message, $code = 0, \Exception $previous = NULL, $result = NULL) { $this->result = $result; parent::__construct($message, $code, $previous); }