Package org.apache.guacamole
Class GuacamoleUnauthorizedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.guacamole.GuacamoleException
-
- org.apache.guacamole.GuacamoleClientException
-
- org.apache.guacamole.GuacamoleSecurityException
-
- org.apache.guacamole.GuacamoleUnauthorizedException
-
- All Implemented Interfaces:
Serializable
public class GuacamoleUnauthorizedException extends GuacamoleSecurityException
A security-related exception thrown when parts of the Guacamole API is denying access to a resource, but access MAY be granted were the user authorized (logged in).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GuacamoleUnauthorizedException(String message)
Creates a new GuacamoleUnauthorizedException with the given message.GuacamoleUnauthorizedException(String message, Throwable cause)
Creates a new GuacamoleUnauthorizedException with the given message and cause.GuacamoleUnauthorizedException(Throwable cause)
Creates a new GuacamoleUnauthorizedException with the given cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GuacamoleStatus
getStatus()
Returns the Guacamole status associated with this exception.-
Methods inherited from class org.apache.guacamole.GuacamoleException
getHttpStatusCode, getWebSocketCode
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
GuacamoleUnauthorizedException
public GuacamoleUnauthorizedException(String message, Throwable cause)
Creates a new GuacamoleUnauthorizedException with the given message and cause.- Parameters:
message
- A human readable description of the exception that occurred.cause
- The cause of this exception.
-
GuacamoleUnauthorizedException
public GuacamoleUnauthorizedException(String message)
Creates a new GuacamoleUnauthorizedException with the given message.- Parameters:
message
- A human readable description of the exception that occurred.
-
GuacamoleUnauthorizedException
public GuacamoleUnauthorizedException(Throwable cause)
Creates a new GuacamoleUnauthorizedException with the given cause.- Parameters:
cause
- The cause of this exception.
-
-
Method Detail
-
getStatus
public GuacamoleStatus getStatus()
Description copied from class:GuacamoleException
Returns the Guacamole status associated with this exception. This status can then be easily translated into an HTTP error code or Guacamole protocol error code.- Overrides:
getStatus
in classGuacamoleSecurityException
- Returns:
- The corresponding Guacamole status.
-
-