japod@6: package org.apidesign.apifest08.currency; japod@6: japod@6: import java.util.Currency; japod@6: japod@21: public final class UnsupportedConversionException extends ConversionException{ japod@6: japod@6: private static final long serialVersionUID = 1L; japod@6: japod@6: private Currency from; japod@6: private Currency to; japod@6: japod@6: public UnsupportedConversionException(Currency from, Currency to) { japod@21: super("Conversion from the currency " + from + " to the currency " + to + " or vice versa in not supported."); japod@6: this.from = from; japod@6: this.to = to; japod@6: } japod@6: japod@6: public Currency getFrom() { japod@6: return from; japod@6: } japod@6: japod@6: public Currency getTo() { japod@6: return to; japod@6: } japod@6: japod@6: japod@6: }