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
public class AuthException extends RestApiException
Caller cannot perform the request operation (HTTP 403 Forbidden).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthException(String msg)
AuthException(String msg, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
getAdvice()
Advice that the user can follow to acquire authorization to perform the action.void
setAdvice(String advice)
-
Methods inherited from class com.google.gerrit.extensions.restapi.RestApiException
caching, setCaching
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
setAdvice
public void setAdvice(String advice)
-
-