Package com.lokalized

Class UnsupportedLocaleException

All Implemented Interfaces:
Serializable

@NotThreadSafe public class UnsupportedLocaleException extends RuntimeException
Exception thrown when an operation was performed on a locale that is not recognized by the system.

This class is intended for use by a single thread.

Author:
Mark Allen
See Also:
  • Constructor Details

    • UnsupportedLocaleException

      public UnsupportedLocaleException(@Nonnull Locale locale)
      Constructs a new exception with the unsupported locale.
      Parameters:
      locale - the unsupported locale which triggered this exception, not null
  • Method Details

    • getLocale

      @Nonnull public Locale getLocale()
      The unsupported locale that triggered this exception.
      Returns:
      the unsupported locale, not null