Example #1
0
 /**
  * @param string $title
  * @param string $error
  * @param bool|\Exception $exception
  */
 public function renderError($title, $error, $exception = false)
 {
     $o = new stdClass();
     $o->title = $title;
     $o->content = $error;
     if ($exception) {
         $o->content .= $exception->getTraceAsString();
     }
     \Response::closeOutputBuffers(1, false);
     $ve = new ErrorView($o);
     \Response::create($ve->render($o))->send();
 }