public class TranslatableGuacamoleInsufficientCredentialsException extends GuacamoleInsufficientCredentialsException implements Translatable
GuacamoleInsufficientCredentialsException 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 |
|---|
TranslatableGuacamoleInsufficientCredentialsException(String message,
String key,
CredentialsInfo credentialsInfo)
Creates a new TranslatableGuacamoleInsufficientCredentialsException with
the given message, and associated credential information.
|
TranslatableGuacamoleInsufficientCredentialsException(String message,
String key,
Throwable cause,
CredentialsInfo credentialsInfo)
Creates a new TranslatableGuacamoleInsufficientCredentialsException with
the given message, cause, and associated credential information.
|
TranslatableGuacamoleInsufficientCredentialsException(String message,
TranslatableMessage translatableMessage,
CredentialsInfo credentialsInfo)
Creates a new TranslatableGuacamoleInsufficientCredentialsException with
the given message, and associated credential information.
|
TranslatableGuacamoleInsufficientCredentialsException(String message,
TranslatableMessage translatableMessage,
Throwable cause,
CredentialsInfo credentialsInfo)
Creates a new TranslatableGuacamoleInsufficientCredentialsException with
the given message, cause, and associated credential information.
|
| 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.
|
getCredentialsInfogetHttpStatusCode, getWebSocketCodeaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic TranslatableGuacamoleInsufficientCredentialsException(String message, TranslatableMessage translatableMessage, Throwable cause, CredentialsInfo credentialsInfo)
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.credentialsInfo - Information describing the form of valid credentials.public TranslatableGuacamoleInsufficientCredentialsException(String message, TranslatableMessage translatableMessage, CredentialsInfo credentialsInfo)
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.credentialsInfo - Information describing the form of valid credentials.public TranslatableGuacamoleInsufficientCredentialsException(String message, String key, Throwable cause, CredentialsInfo credentialsInfo)
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.credentialsInfo - Information describing the form of valid credentials.public TranslatableGuacamoleInsufficientCredentialsException(String message, String key, CredentialsInfo credentialsInfo)
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.credentialsInfo - Information describing the form of valid credentials.public TranslatableMessage getTranslatableMessage()
TranslatablegetTranslatableMessage in interface TranslatableCopyright © 2020. All rights reserved.