task4/solution06/src/org/apidesign/apifest08/currency/UnsupportedConversionException.java
changeset 64 51f7b894eba6
parent 61 58ec6da75f6f
     1.1 --- a/task4/solution06/src/org/apidesign/apifest08/currency/UnsupportedConversionException.java	Sat Oct 11 23:38:46 2008 +0200
     1.2 +++ b/task4/solution06/src/org/apidesign/apifest08/currency/UnsupportedConversionException.java	Fri Oct 17 17:32:34 2008 +0200
     1.3 @@ -1,6 +1,7 @@
     1.4  package org.apidesign.apifest08.currency;
     1.5  
     1.6  import java.util.Currency;
     1.7 +import java.util.Date;
     1.8  
     1.9  public final class UnsupportedConversionException extends ConversionException{
    1.10  
    1.11 @@ -14,6 +15,12 @@
    1.12  		this.from = from;
    1.13  		this.to = to;
    1.14  	}
    1.15 +	
    1.16 +	public UnsupportedConversionException(Currency from, Currency to, Date time) {
    1.17 +		super("Conversion from  the currency " + from + " to the currency " + to + " or vice versa in not supported for time " + time );
    1.18 +		this.from = from;
    1.19 +		this.to = to;
    1.20 +	}
    1.21  
    1.22  	public Currency getFrom() {
    1.23  		return from;