Module java.money
Package javax.money

Class UnknownCurrencyException

All Implemented Interfaces:
Serializable

public class UnknownCurrencyException extends MonetaryException
Exception thrown when a currency code cannot be resolved into a CurrencyUnit.
Version:
0.8
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      serialVersionUID.
      See Also:
    • currencyCode

      private final String currencyCode
      The invalid currency code requested.
    • locale

      private final Locale locale
      The invalid Locale requested.
  • Constructor Details

  • Method Details

    • getCurrencyCode

      public String getCurrencyCode()
      Access the invalid currency code.
      Returns:
      the invalid currency code, or null.
    • getLocale

      public Locale getLocale()
      Access the invalid Locale.
      Returns:
      the invalid Locale, or null.
    • toString

      public String toString()
      Overrides:
      toString in class Throwable