Package org.apache.shiro.authz
Class UnauthorizedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.shiro.ShiroException
-
- org.apache.shiro.authz.AuthorizationException
-
- org.apache.shiro.authz.UnauthorizedException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HostUnauthorizedException
public class UnauthorizedException extends AuthorizationException
Thrown to indicate a requested operation or access to a requested resource is not allowed.- Since:
- 0.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnauthorizedException()
Creates 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 Detail
-
UnauthorizedException
public UnauthorizedException()
Creates a new UnauthorizedException.
-
UnauthorizedException
public UnauthorizedException(String message)
Constructs a new UnauthorizedException.- Parameters:
message
- the reason for the exception
-
UnauthorizedException
public UnauthorizedException(Throwable cause)
Constructs a new UnauthorizedException.- Parameters:
cause
- the underlying Throwable that caused this exception to be thrown.
-
-