Class AuthException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.google.gerrit.extensions.restapi.RestApiException
com.google.gerrit.extensions.restapi.AuthException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PermissionDeniedException
Caller cannot perform the request operation (HTTP 403 Forbidden).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.gerrit.extensions.restapi.RestApiException
caching, setCaching, wrap
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AuthException
- Parameters:
msg
- message to return to the client.
-
AuthException
- Parameters:
msg
- message to return to the client.cause
- cause of this exception.
-
-
Method Details
-
setAdvice
-
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.
-