public class TranslatableGuacamoleUpstreamException extends org.apache.guacamole.GuacamoleUpstreamException implements Translatable
GuacamoleUpstreamException
whose associated message is translatable
and can be passed through an arbitrary translation service, producing a
human-readable message in the user's native language.Constructor and Description |
---|
TranslatableGuacamoleUpstreamException(String message,
String key)
Creates a new TranslatableGuacamoleUpstreamException with the given
message.
|
TranslatableGuacamoleUpstreamException(String message,
String key,
Throwable cause)
Creates a new TranslatableGuacamoleUpstreamException with the given
message and cause.
|
TranslatableGuacamoleUpstreamException(String message,
TranslatableMessage translatableMessage)
Creates a new TranslatableGuacamoleUpstreamException with the given
message.
|
TranslatableGuacamoleUpstreamException(String message,
TranslatableMessage translatableMessage,
Throwable cause)
Creates a new TranslatableGuacamoleUpstreamException with the given
message and cause.
|
Modifier and Type | Method and Description |
---|---|
TranslatableMessage |
getTranslatableMessage()
Returns a message which can be translated using a translation service,
consisting of a translation key and optional set of substitution
variables.
|
getHttpStatusCode, getWebSocketCode
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public TranslatableGuacamoleUpstreamException(String message, TranslatableMessage translatableMessage, Throwable cause)
message
- A human-readable description of the exception that occurred. This
message should be readable on its own and as-written, without
requiring a translation service.translatableMessage
- A translatable, human-readable description of the exception that
occurred.cause
- The cause of this exception.public TranslatableGuacamoleUpstreamException(String message, TranslatableMessage translatableMessage)
message
- A human-readable description of the exception that occurred. This
message should be readable on its own and as-written, without
requiring a translation service.translatableMessage
- A translatable, human-readable description of the exception that
occurred.public TranslatableGuacamoleUpstreamException(String message, String key, Throwable cause)
message
- A human-readable description of the exception that occurred. This
message should be readable on its own and as-written, without
requiring a translation service.key
- The arbitrary key which can be used to look up the message to be
displayed in the user's native language.cause
- The cause of this exception.public TranslatableGuacamoleUpstreamException(String message, String key)
message
- A human-readable description of the exception that occurred. This
message should be readable on its own and as-written, without
requiring a translation service.key
- The arbitrary key which can be used to look up the message to be
displayed in the user's native language.public TranslatableMessage getTranslatableMessage()
Translatable
getTranslatableMessage
in interface Translatable
Copyright © 2020. All rights reserved.