Package org.apache.shiro.authz
Class UnauthorizedException
-
-
-
-
- org.apache.shiro.ShiroException
-
- org.apache.shiro.authz.AuthorizationException
-
- org.apache.shiro.authz.UnauthorizedException
-
-
-
-
- All Implemented Interfaces:
- 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.message)
Constructs a new UnauthorizedException.message, cause)
Constructs a new UnauthorizedException.cause)
Constructs a new UnauthorizedException.
-
-
-
Constructor Detail
-
UnauthorizedException
public UnauthorizedException()
Creates a new UnauthorizedException.
-
UnauthorizedException
public UnauthorizedException( message)
Constructs a new UnauthorizedException.- Parameters:
message
- the reason for the exception
-
UnauthorizedException
public UnauthorizedException( cause)
Constructs a new UnauthorizedException.- Parameters:
cause
- the underlying Throwable that caused this exception to be thrown.
-
UnauthorizedException
public UnauthorizedException( message, cause)
Constructs a new UnauthorizedException.- Parameters:
message
- the reason for the exceptioncause
- the underlying Throwable that caused this exception to be thrown.
-
-