forException() public static method

public static forException ( $httpCode, Exception $exception )
$exception Exception
 public function runDefaultHandler($exception)
 {
     if ($this->needPrettyHandler()) {
         $run = new Run();
         $run->pushHandler(new PrettyPageHandler());
         $run->handleException($exception);
     } else {
         $this->handleError(OuzoExceptionData::forException(500, $exception));
     }
 }
Beispiel #2
0
 protected function runDefaultHandler($exception)
 {
     $this->handleError(OuzoExceptionData::forException(500, $exception));
 }