Class I18nException

    • Constructor Detail

      • I18nException

        public I18nException()
        Constructs a new I18nException.
      • I18nException

        public I18nException​(String aBundleName,
                             String aMessageKey)
        Constructs a new I18nException using the supplied bundle details.
        Parameters:
        aBundleName - The name of a resource bundle to use
        aMessageKey - The message key to retrieve from the supplied bundle
      • I18nException

        public I18nException​(Locale aLocale,
                             String aBundleName,
                             String aMessageKey)
        Constructs a new I18nException using the supplied Locale and bundle details.
        Parameters:
        aLocale - The Locale to use when looking up the message key
        aBundleName - The name of the resource bundle to use
        aMessageKey - The message key whose value should be retrieved from the supplied bundle
      • I18nException

        public I18nException​(String aBundleName,
                             String aMessageKey,
                             Object... aVarargs)
        Constructs a new I18nException with the supplied string as the message key and the supplied string varargs as the message details.
        Parameters:
        aBundleName - The name of the resource bundle to use
        aMessageKey - The message key whose value should be retrieved from the supplied bundle
        aVarargs - The additional details to pass into the exception
      • I18nException

        public I18nException​(Locale aLocale,
                             String aBundleName,
                             String aMessageKey,
                             Object... aVarargs)
        Constructs a new I18nException with the supplied Locale as the locale, the supplied int as the message key, and the supplied string varargs as the message details.
        Parameters:
        aLocale - The locale to use when constructing the exception
        aBundleName - The name of the resource bundle to use
        aMessageKey - The key to use when looking up the message
        aVarargs - The additional details to pass into the exception
      • I18nException

        public I18nException​(Throwable aCause)
        Constructs a new I18nException with the supplied underlying cause.
        Parameters:
        aCause - The underlying cause of the current exception
      • I18nException

        public I18nException​(Throwable aCause,
                             String aBundleName,
                             String aMessageKey)
        Constructs a new I18nException with the supplied cause and message.
        Parameters:
        aCause - The underlying cause of the current exception
        aBundleName - The name of the resource bundle to use
        aMessageKey - The key to use when looking up the message
      • I18nException

        public I18nException​(Throwable aCause,
                             Locale aLocale,
                             String aBundleName,
                             String aMessageKey)
        Constructs a new I18nException using the Locale with the supplied cause and message.
        Parameters:
        aCause - The underlying cause of the current exception
        aLocale - The locale to use when constructing the exception
        aBundleName - The name of the resource bundle to use
        aMessageKey - The key to use when looking up the message
      • I18nException

        public I18nException​(Throwable aCause,
                             String aBundleName,
                             String aMessageKey,
                             Object... aVarargs)
        Constructs a new I18nException with the supplied cause, message, and additional details.
        Parameters:
        aCause - The underlying cause of the current exception
        aBundleName - The name of the resource bundle to use
        aMessageKey - The key to use when looking up the message
        aVarargs - The additional details to add to the exception message
      • I18nException

        public I18nException​(Throwable aCause,
                             Locale aLocale,
                             String aBundleName,
                             String aMessageKey,
                             Object... aVarargs)
        Constructs a new I18nException from the supplied Locale with the supplied cause, message, and additional details.
        Parameters:
        aCause - The underlying cause of the current exception
        aLocale - The locale to use when constructing the exception
        aBundleName - The name of the resource bundle to use
        aMessageKey - The key to use when looking up the message
        aVarargs - The additional details to add to the exception message