task4/solution06/src/org/apidesign/apifest08/currency/UnsupportedConversionException.java
1 package org.apidesign.apifest08.currency;
3 import java.util.Currency;
6 public final class UnsupportedConversionException extends ConversionException{
8 private static final long serialVersionUID = 1L;
10 private Currency from;
13 public UnsupportedConversionException(Currency from, Currency to) {
14 super("Conversion from the currency " + from + " to the currency " + to + " or vice versa in not supported.");
19 public UnsupportedConversionException(Currency from, Currency to, Date time) {
20 super("Conversion from the currency " + from + " to the currency " + to + " or vice versa in not supported for time " + time );
25 public Currency getFrom() {
29 public Currency getTo() {