public class UnknownCurrencyException extends javax.money.MonetaryException
For example, this exception would be thrown when trying to obtain a currency using an unrecognized currency code or locale.
Constructor and Description |
---|
UnknownCurrencyException(String currencyCode)
Constructor.
|
UnknownCurrencyException(String currencyCode,
String message)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getCurrencyCode()
Access the currency code of the unknown currency.
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public UnknownCurrencyException(String currencyCode)
currencyCode
- the currencyCode, not null
.message
- the exception message, if null a default message will be
created.public UnknownCurrencyException(String currencyCode, String message)
currencyCode
- the currencyCode, not null
.message
- the exception message, if null a default message will be
created.Copyright © 2012–2013 JSR 354 - Expert Group. All rights reserved.