Class TranslatableGuacamoleResourceNotFoundException

  • All Implemented Interfaces:
    Serializable, Translatable

    public class TranslatableGuacamoleResourceNotFoundException
    extends org.apache.guacamole.GuacamoleResourceNotFoundException
    implements Translatable
    A GuacamoleResourceNotFoundException 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.
    See Also:
    Serialized Form
    • Constructor Detail

      • TranslatableGuacamoleResourceNotFoundException

        public TranslatableGuacamoleResourceNotFoundException​(String message,
                                                              TranslatableMessage translatableMessage,
                                                              Throwable cause)
        Creates a new TranslatableGuacamoleResourceNotFoundException with the given message and cause. The message must be provided in both non-translatable (readable as-written) and translatable forms.
        Parameters:
        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.
      • TranslatableGuacamoleResourceNotFoundException

        public TranslatableGuacamoleResourceNotFoundException​(String message,
                                                              TranslatableMessage translatableMessage)
        Creates a new TranslatableGuacamoleResourceNotFoundException with the given message. The message must be provided in both non-translatable (readable as-written) and translatable forms.
        Parameters:
        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.
      • TranslatableGuacamoleResourceNotFoundException

        public TranslatableGuacamoleResourceNotFoundException​(String message,
                                                              String key,
                                                              Throwable cause)
        Creates a new TranslatableGuacamoleResourceNotFoundException with the given message and cause. The message must be provided in both non-translatable (readable as-written) and translatable forms.
        Parameters:
        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.
      • TranslatableGuacamoleResourceNotFoundException

        public TranslatableGuacamoleResourceNotFoundException​(String message,
                                                              String key)
        Creates a new TranslatableGuacamoleResourceNotFoundException with the given message. The message must be provided in both non-translatable (readable as-written) and translatable forms.
        Parameters:
        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.
    • Method Detail

      • getTranslatableMessage

        public TranslatableMessage getTranslatableMessage()
        Description copied from interface: Translatable
        Returns a message which can be translated using a translation service, consisting of a translation key and optional set of substitution variables.
        Specified by:
        getTranslatableMessage in interface Translatable
        Returns:
        A message which can be translated using a translation service.