Пример #1
0
 /**
  * @param string $message The Exception message
  * @param GraphCore $dag The remainder of the Directed Acyclic Graph (DAG) after the last successful sort
  */
 public function __construct($message, $dag)
 {
     $this->dag = $dag;
     parent::__construct($message);
 }
Пример #2
0
 /**
  * Given an exception, generates an array in the format
  * generated by Exception::getTrace()
  * @param Exception $exception
  * @return array
  */
 protected function getFrameFromException($exception)
 {
     return array('file' => $exception->getFile(), 'line' => $exception->getLine(), 'class' => get_class($exception), 'args' => array($exception->getMessage()));
 }