public static function forException($httpCode, Exception $exception) { return new OuzoExceptionData($httpCode, array(Error::forException($exception)), $exception->getTraceAsString()); }
public function runDefaultHandler($exception) { if ($this->needPrettyHandler()) { $run = new Run(); $run->pushHandler(new PrettyPageHandler()); $run->handleException($exception); } else { $this->handleError(OuzoExceptionData::forException(500, $exception)); } }