Ouzo\ExceptionHandling\ExceptionHandler::runOuzoExceptionHandler PHP Method

runOuzoExceptionHandler() protected method

protected runOuzoExceptionHandler ( $exception )
    protected function runOuzoExceptionHandler($exception)
    {
        if ($exception instanceof UserException) {
            $this->renderUserError(OuzoExceptionData::forException(500, $exception));
            return true;
        } elseif ($exception instanceof RouterException) {
            $this->renderNotFoundError(OuzoExceptionData::forException(404, $exception));
            return true;
        } elseif ($exception instanceof OuzoException) {
            $this->handleError($exception->asExceptionData());
            return true;
        }
        return false;
    }