Ergo\Error\ErrorProxy::_handleException PHP 메소드

_handleException() 공개 메소드

PHP exception handler interface
또한 보기: set_exception_handler
public _handleException ( $e )
    public function _handleException($e)
    {
        if (!$this->_inError && ($handler = $this->_application->errorHandler())) {
            $this->_inError = true;
            $handler->handle($e);
            $this->_inError = false;
        } else {
            if (php_sapi_name() == 'cli') {
                echo $e->__toString();
                exit(1);
            } else {
                header('HTTP/1.1 500 Internal Server Error');
                echo "<h1>Error: " . $e->getMessage() . '</h1>';
                echo '<pre>' . $e->__toString() . '</pre>';
                exit(1);
            }
        }
    }