Ouzo\ExceptionHandling\DebugExceptionHandler::runDefaultHandler PHP Method

runDefaultHandler() public method

public runDefaultHandler ( $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));
        }
    }