/** * @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); }
/** * 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())); }