public class UnknownCurrencyException extends MonetaryException
CurrencyUnit.| Constructor and Description |
|---|
UnknownCurrencyException(Locale locale)
Creates a new exception instance when a
CurrencyUnit could not be evaluated given a
(country) Locale. |
UnknownCurrencyException(String code)
Creates a new exception instance when a
CurrencyUnit could not be evaluated given a
currency code. |
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrencyCode()
Access the invalid currency code.
|
Locale |
getLocale()
Access the invalid
Locale. |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic UnknownCurrencyException(String code)
CurrencyUnit could not be evaluated given a
currency code.code - The unknown currency code (the message is constructed automatically), not null.MonetaryCurrencies#getCurrency(String)public UnknownCurrencyException(Locale locale)
CurrencyUnit could not be evaluated given a
(country) Locale.locale - The unknown Locale, for which a CurrencyUnit was queried (the
message is constructed automatically), not null.MonetaryCurrencies#getCurrency(Locale)Copyright © 2012–2015 JSR 354 - Expert Group. All rights reserved.