Class UnauthorizedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.shiro.lang.ShiroException
org.apache.shiro.authz.AuthorizationException
org.apache.shiro.authz.UnauthorizedException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HostUnauthorizedException
Thrown to indicate a requested operation or access to a requested resource is not allowed.
- Since:
- 0.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new UnauthorizedException.UnauthorizedException(String message) Constructs a new UnauthorizedException.UnauthorizedException(String message, Throwable cause) Constructs a new UnauthorizedException.UnauthorizedException(Throwable cause) Constructs a new UnauthorizedException. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnauthorizedException
public UnauthorizedException()Creates a new UnauthorizedException. -
UnauthorizedException
Constructs a new UnauthorizedException.- Parameters:
message- the reason for the exception
-
UnauthorizedException
Constructs a new UnauthorizedException.- Parameters:
cause- the underlying Throwable that caused this exception to be thrown.
-
UnauthorizedException
Constructs a new UnauthorizedException.- Parameters:
message- the reason for the exceptioncause- the underlying Throwable that caused this exception to be thrown.
-