Package org.apache.guacamole
Class GuacamoleClientTooManyException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.guacamole.GuacamoleException
-
- org.apache.guacamole.GuacamoleClientException
-
- org.apache.guacamole.GuacamoleClientTooManyException
-
- All Implemented Interfaces:
Serializable
public class GuacamoleClientTooManyException extends GuacamoleClientException
An exception which is thrown when too many requests have been received by the current client, and further requests are being rejected, either temporarily or permanently.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GuacamoleClientTooManyException(String message)
Creates a new GuacamoleClientTooManyException with the given message.GuacamoleClientTooManyException(String message, Throwable cause)
Creates a new GuacamoleClientTooManyException with the given message and cause.GuacamoleClientTooManyException(Throwable cause)
Creates a new GuacamoleClientTooManyException 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
-
GuacamoleClientTooManyException
public GuacamoleClientTooManyException(String message, Throwable cause)
Creates a new GuacamoleClientTooManyException with the given message and cause.- Parameters:
message
- A human readable description of the exception that occurred.cause
- The cause of this exception.
-
GuacamoleClientTooManyException
public GuacamoleClientTooManyException(String message)
Creates a new GuacamoleClientTooManyException with the given message.- Parameters:
message
- A human readable description of the exception that occurred.
-
GuacamoleClientTooManyException
public GuacamoleClientTooManyException(Throwable cause)
Creates a new GuacamoleClientTooManyException 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 classGuacamoleClientException
- Returns:
- The corresponding Guacamole status.
-
-