Class AuthException

    • Constructor Detail

      • AuthException

        public AuthException​(String msg)
        Parameters:
        msg - message to return to the client.
      • AuthException

        public AuthException​(String msg,
                             Throwable cause)
        Parameters:
        msg - message to return to the client.
        cause - cause of this exception.
    • Method Detail

      • setAdvice

        public void setAdvice​(String advice)
      • getAdvice

        public Optional<String> getAdvice()
        Advice that the user can follow to acquire authorization to perform the action.

        This may be long-form text with newlines, and may be printed to a terminal, for example in the message stream in response to a push.