Package org.apache.gravitino.exceptions
Class UnauthorizedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.gravitino.exceptions.GravitinoRuntimeException
org.apache.gravitino.exceptions.UnauthorizedException
- All Implemented Interfaces:
Serializable
Exception thrown when a user is not authorized to perform an action.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnauthorizedException
(String message, Object... args) Constructs a new exception with the specified detail message.UnauthorizedException
(String message, String challenge) Constructs a new exception with the specified detail message and challenge.UnauthorizedException
(Throwable cause, String message, Object... args) Constructs a new exception with the specified detail message and cause. -
Method Summary
Modifier and TypeMethodDescriptionGet the challenge of the exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnauthorizedException
Constructs a new exception with the specified detail message.- Parameters:
message
- the detail message.args
- the arguments to the message.
-
UnauthorizedException
@FormatMethod public UnauthorizedException(Throwable cause, @FormatString String message, Object... args) Constructs a new exception with the specified detail message and cause.- Parameters:
cause
- the cause.message
- the detail message.args
- the arguments to the message.
-
UnauthorizedException
Constructs a new exception with the specified detail message and challenge.- Parameters:
message
- the detail message.challenge
- the challenge.
-
-
Method Details
-
getChallenges
Get the challenge of the exception.- Returns:
- the challenge.
-