src/Whoops/Handler/PrettyPageHandler.php
protected function getExceptionCode()
    {
        $exception = $this->getException();

        $code = $exception->getCode();
        if ($exception instanceof \ErrorException) {
            // ErrorExceptions wrap the php-error types within the 'severity' property
            $code = Misc::translateErrorCode($exception->getSeverity());
        }

        return (string) $code;
    }
protected function getExceptionCode()
    {
        $exception = $this->getException();

        $code = $exception->getCode();
        if ($exception instanceof \ErrorException) {
            // ErrorExceptions wrap the php-error types within the 'severity' property
            $code = Misc::translateErrorCode($exception->getSeverity());
        }

        return (string) $code;
    }
protected function getExceptionCode ( ) { $ exception = $ this -> getException ( ) ; $ code = $ exception -> getCode ( ) ; if ( $ exception instanceof \ ErrorException ) { // ErrorExceptions wrap the php-error types within the 'severity' property $ code = Misc :: translateErrorCode ( $ exception -> getSeverity ( ) ) ; } return ( string ) $ code ; }
Get the code of the exception that is currently being handled.

@return string
Get the code of the exception that is currently being handled .