public class GuacamoleException extends Exception
Constructor and Description |
---|
GuacamoleException(String message)
Creates a new GuacamoleException with the given message.
|
GuacamoleException(String message,
Throwable cause)
Creates a new GuacamoleException with the given message and cause.
|
GuacamoleException(Throwable cause)
Creates a new GuacamoleException with the given cause.
|
Modifier and Type | Method and Description |
---|---|
int |
getHttpStatusCode()
Returns the most applicable HTTP status code that can be associated
with this exception.
|
GuacamoleStatus |
getStatus()
Returns the Guacamole status associated with this exception.
|
int |
getWebSocketCode()
Returns the most applicable WebSocket status code that can be
associated with this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public GuacamoleException(String message, Throwable cause)
message
- A human readable description of the exception that
occurred.cause
- The cause of this exception.public GuacamoleException(String message)
message
- A human readable description of the exception that
occurred.public GuacamoleException(Throwable cause)
cause
- The cause of this exception.public GuacamoleStatus getStatus()
public int getHttpStatusCode()
public int getWebSocketCode()
Copyright © 2018. All rights reserved.