src/AuthManager.php
protected function returnException(Exception $e)
    {
        $key = snake_case(class_basename($e));
        $message = $this->translate($key, $e->getMessage());

        return new ExceptionReply($message, [], $e);
    }
protected function returnException(Exception $e)
    {
        $key = snake_case(class_basename($e));
        $message = $this->translate($key, $e->getMessage());

        return new ExceptionReply($message, [], $e);
    }
protected function returnException ( Exception $ e ) { $ key = snake_case ( class_basename ( $ e ) ) ; $ message = $ this -> translate ( $ key , $ e -> getMessage ( ) ) ; return new ExceptionReply ( $ message , [ ] , $ e ) ; }
Return any caught exceptions in a ExceptionDispatch DTO
@param  Exception $e
@return ExcpetionDispatch
Return any caught exceptions in a ExceptionDispatch DTO