Serializablepublic class UnknownCurrencyException extends MonetaryException
CurrencyUnit.| Constructor | Description |
|---|---|
UnknownCurrencyException(String code) |
Creates a new exception instance when a
CurrencyUnit could not be evaluated given a
currency code. |
UnknownCurrencyException(Locale locale) |
Creates a new exception instance when a
CurrencyUnit could not be evaluated given a
(country) Locale. |
| Modifier and Type | Method | Description |
|---|---|---|
String |
getCurrencyCode() |
Access the invalid currency code.
|
Locale |
getLocale() |
Access the invalid
Locale. |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, 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.Monetary.getCurrency(String, 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.Monetary.getCurrency(Locale,String...)Copyright © 2012–2018 JSR 354 - Expert Group. All rights reserved.