java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.money.MonetaryException
javax.money.UnknownCurrencyException
- All Implemented Interfaces:
Serializable
Exception thrown when a currency code cannot be resolved into a
CurrencyUnit.- Version:
- 0.8
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new exception instance when aCurrencyUnitcould not be evaluated given a currency code.UnknownCurrencyException(Locale locale) Creates a new exception instance when aCurrencyUnitcould not be evaluated given a (country)Locale. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDserialVersionUID.- See Also:
-
currencyCode
The invalid currency code requested. -
locale
The invalidLocalerequested.
-
-
Constructor Details
-
UnknownCurrencyException
Creates a new exception instance when aCurrencyUnitcould not be evaluated given a currency code.- Parameters:
code- The unknown currency code (the message is constructed automatically), not null.- See Also:
-
UnknownCurrencyException
Creates a new exception instance when aCurrencyUnitcould not be evaluated given a (country)Locale.- Parameters:
locale- The unknownLocale, for which aCurrencyUnitwas queried (the message is constructed automatically), not null.- See Also:
-
-
Method Details