コード例 #1
0
 /**
  * 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();
 }
コード例 #2
0
 /**
  * @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);
 }