src/Web/Result.php
public function getExceptionMessage()
    {
        $message = '';
        if (($e = $this->getException()) !== null) {
            $message = $e->getCode() . ': ' . $e->getMessage();
            $message = $this->t('message_exception') . ' ' . $message;
        }
        return $message;
    }
public function getExceptionMessage()
    {
        $message = '';
        if (($e = $this->getException()) !== null) {
            $message = $e->getCode() . ': ' . $e->getMessage();
            $message = $this->t('message_exception') . ' ' . $message;
        }
        return $message;
    }
public function getExceptionMessage ( ) { $ message = '' ; if ( ( $ e = $ this -> getException ( ) ) !== null ) { $ message = $ e -> getCode ( ) . ': ' . $ e -> getMessage ( ) ; $ message = $ this -> t ( 'message_exception' ) . ' ' . $ message ; } return $ message ; }
Returns the exception message, if an exception was set.

@return string
Returns the exception message if an exception was set .