Class HostUnauthorizedException
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
org.apache.shiro.authz.HostUnauthorizedException
- All Implemented Interfaces:
Serializable
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:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new HostUnauthorizedException.HostUnauthorizedException(String message) Constructs a new HostUnauthorizedException.HostUnauthorizedException(String message, Throwable cause) Constructs a new HostUnauthorizedException.Constructs a new HostUnauthorizedException. -
Method Summary
Modifier and TypeMethodDescriptiongetHost()Returns the host associated with this exception.voidsetHostAddress(String host) Sets the host associated with this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HostUnauthorizedException
public HostUnauthorizedException()Creates a new HostUnauthorizedException. -
HostUnauthorizedException
Constructs a new HostUnauthorizedException.- Parameters:
message- the reason for the exception
-
HostUnauthorizedException
Constructs a new HostUnauthorizedException.- Parameters:
cause- the underlying Throwable that caused this exception to be thrown.
-
HostUnauthorizedException
Constructs a new HostUnauthorizedException.- Parameters:
message- the reason for the exceptioncause- the underlying Throwable that caused this exception to be thrown.
-
-
Method Details
-
getHost
-
setHostAddress
Sets the host associated with this exception.- Parameters:
host- the host associated with this exception.
-