Prado\PradoBase::exceptionHandler PHP 메소드

exceptionHandler() 공개 정적인 메소드

This method should be registered as default exception handler using {@link set_exception_handler}. The method tries to use the errorhandler module of the Prado application to handle the exception. If the application or the module does not exist, it simply echoes the exception.
public static exceptionHandler ( $exception )
    public static function exceptionHandler($exception)
    {
        if (self::$_application !== null && ($errorHandler = self::$_application->getErrorHandler()) !== null) {
            $errorHandler->handleError(null, $exception);
        } else {
            echo $exception;
        }
        exit(1);
    }