Package org.apache.shiro.authz
Class HostUnauthorizedException
-
-
-
-
- org.apache.shiro.ShiroException
-
- org.apache.shiro.authz.AuthorizationException
-
- org.apache.shiro.authz.UnauthorizedException
-
- org.apache.shiro.authz.HostUnauthorizedException
-
-
-
-
- All Implemented Interfaces:
public class HostUnauthorizedException extends UnauthorizedException
Thrown when a particular client (that is, host address) has not been enabled to access the system or if the client has been enabled access but is not permitted to perform a particular operation or access a particular resource.- Since:
- 0.1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HostUnauthorizedException()
Creates a new HostUnauthorizedException.message)
Constructs a new HostUnauthorizedException.message, cause)
Constructs a new HostUnauthorizedException.cause)
Constructs a new HostUnauthorizedException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description getHost()
Returns the host associated with this exception.void
host)
Sets the host associated with this exception.
-
-
-
Constructor Detail
-
HostUnauthorizedException
public HostUnauthorizedException()
Creates a new HostUnauthorizedException.
-
HostUnauthorizedException
public HostUnauthorizedException( message)
Constructs a new HostUnauthorizedException.- Parameters:
message
- the reason for the exception
-
HostUnauthorizedException
public HostUnauthorizedException( cause)
Constructs a new HostUnauthorizedException.- Parameters:
cause
- the underlying Throwable that caused this exception to be thrown.
-
HostUnauthorizedException
public HostUnauthorizedException( message, cause)
Constructs a new HostUnauthorizedException.- Parameters:
message
- the reason for the exceptioncause
- the underlying Throwable that caused this exception to be thrown.
-
-