| Modifier and Type | Field and Description |
|---|---|
| private final CurrencyUnit | base
Base currency. |
| private final ConversionContext | conversionContext
The acquired |
| private static final long | serialVersionUID
Serialization lock.
|
| private final CurrencyUnit | term
Terminating currency. |
| Access | Constructor and Description |
|---|---|
| public | CurrencyConversionException(CurrencyUnit
the source currency, may be null. base, CurrencyUnit the target currency, may be null. term, ConversionContext the conversionContext, String javax.money.convert.ConversionContext in place.the detail message. message)Constructs an |
| public | CurrencyConversionException(CurrencyUnit
the source currency, may be null. base, CurrencyUnit the target currency, may be null. term, ConversionContext the conversionContext)javax.money.convert.ConversionContext in place.Constructs an |
| public | CurrencyConversionException(CurrencyUnit
the source currency, may be null. base, CurrencyUnit the target currency, may be null. term, ConversionContext the conversionContext, String javax.money.convert.ConversionContext in place.the detail message (which is saved for later retrieval by the
message, Throwable Throwable#getMessage() method).the cause (which is saved for later retrieval by the
cause)Throwable#getCause() method). (A null value
is permitted, and indicates that the cause is nonexistent or
unknown.)Constructs a new exception with the specified source and target currency, detail message and cause. |
| Modifier and Type | Method and Description |
|---|---|
| public CurrencyUnit | |
| public ConversionContext | |
| public CurrencyUnit | |
| public String |
| base | back to summary |
|---|---|
| private final CurrencyUnit base Base currency. | |
| conversionContext | back to summary |
|---|---|
| private final ConversionContext conversionContext The acquired | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides javax. Serialization lock. | |
| term | back to summary |
|---|---|
| private final CurrencyUnit term Terminating currency. | |
| CurrencyConversionException | back to summary |
|---|---|
| public CurrencyConversionException(CurrencyUnit base, CurrencyUnit term, ConversionContext conversionContext, String message) Constructs an
| |
| CurrencyConversionException | back to summary |
|---|---|
| public CurrencyConversionException(CurrencyUnit base, CurrencyUnit term, ConversionContext conversionContext) Constructs an
| |
| CurrencyConversionException | back to summary |
|---|---|
| public CurrencyConversionException(CurrencyUnit base, CurrencyUnit term, ConversionContext conversionContext, String message, Throwable cause) Constructs a new exception with the specified source and target currency, detail message and cause.
Note that the detail message associated with
| |
| getBaseCurrency | back to summary |
|---|---|
| public CurrencyUnit getBaseCurrency() Gets the first currency at fault.
| |
| getConversionContext | back to summary |
|---|---|
| public ConversionContext getConversionContext() Gets the queried timestamp at fault.
| |
| getTermCurrency | back to summary |
|---|---|
| public CurrencyUnit getTermCurrency() Gets the second currency at fault.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a short description of this throwable. The result is the concatenation of:
getLocalizedMessage returns null, then just
the class name is returned.
| |