
public class UnsupportedCurrencyException extends IllegalArgumentException
| Constructor and Description |
|---|
UnsupportedCurrencyException(String currencyCode,
Date date)
Creates a new
UnsupportedCurrencyException taking the unsupported currency code together with the date
for which it was requested. |
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrencyCode()
Gets the currency code causing this exception to be thrown.
|
Date |
getDate()
Gets the date for which
getCurrencyCode() is not supported. |
String |
getMessage()
Returns the message of the exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic UnsupportedCurrencyException(String currencyCode, Date date)
UnsupportedCurrencyException taking the unsupported currency code together with the date
for which it was requested.currencyCode - The ISO currency code which is not supported at date.date - the date for which currencyCode is illegal.public String getCurrencyCode()
null.public Date getDate()
getCurrencyCode() is not supported.getCurrencyCode() is not supported or null.public String getMessage()
getMessage in class ThrowableCopyright © 2005–2014 jDTAUS. All rights reserved.