Package org.apache.guacamole
Class GuacamoleServerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.guacamole.GuacamoleException
org.apache.guacamole.GuacamoleServerException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GuacamoleConnectionClosedException
,GuacamoleServerBusyException
,GuacamoleUnsupportedException
A generic exception thrown when part of the Guacamole API encounters
an unexpected, internal error. An internal error, if correctable, would
require correction on the server side, not the client.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGuacamoleServerException
(String message) Creates a new GuacamoleServerException with the given message.GuacamoleServerException
(String message, Throwable cause) Creates a new GuacamoleServerException with the given message and cause.Creates a new GuacamoleServerException with the given cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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 Details
-
GuacamoleServerException
Creates a new GuacamoleServerException with the given message and cause.- Parameters:
message
- A human readable description of the exception that occurred.cause
- The cause of this exception.
-
GuacamoleServerException
Creates a new GuacamoleServerException with the given message.- Parameters:
message
- A human readable description of the exception that occurred.
-
GuacamoleServerException
Creates a new GuacamoleServerException with the given cause.- Parameters:
cause
- The cause of this exception.
-
-
Method Details
-
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 classGuacamoleException
- Returns:
- The corresponding Guacamole status.
-