public class AuthException extends RestApiException
| Constructor and Description |
|---|
AuthException(java.lang.String msg) |
AuthException(java.lang.String msg,
java.lang.Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.lang.String> |
getAdvice()
Advice that the user can follow to acquire authorization to perform the action.
|
void |
setAdvice(java.lang.String advice) |
caching, cachingpublic AuthException(java.lang.String msg)
msg - message to return to the client.public AuthException(java.lang.String msg,
java.lang.Throwable cause)
msg - message to return to the client.cause - cause of this exception.public void setAdvice(java.lang.String advice)
public java.util.Optional<java.lang.String> getAdvice()
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.