task1/solution06/src/org/apidesign/apifest08/currency/UnsupportedConversionException.java
author japod@localhost
Sun, 28 Sep 2008 14:12:38 +0200
changeset 6 97662396c0fd
child 21 61e4c4c120fd
permissions -rw-r--r--
Adding solutions received for task1
japod@6
     1
package org.apidesign.apifest08.currency;
japod@6
     2
japod@6
     3
import java.util.Currency;
japod@6
     4
japod@6
     5
public class UnsupportedConversionException extends ConversionException{
japod@6
     6
japod@6
     7
	private static final long serialVersionUID = 1L; 
japod@6
     8
	
japod@6
     9
	private Currency from;
japod@6
    10
	private Currency to;
japod@6
    11
japod@6
    12
	public UnsupportedConversionException(Currency from, Currency to) {
japod@6
    13
		super("Conversion from  the currency " + from + " to the currency " + to + " or vice versa in not supported yet. Missing bid.");
japod@6
    14
		this.from = from;
japod@6
    15
		this.to = to;
japod@6
    16
	}
japod@6
    17
japod@6
    18
	public Currency getFrom() {
japod@6
    19
		return from;
japod@6
    20
	}
japod@6
    21
japod@6
    22
	public Currency getTo() {
japod@6
    23
		return to;
japod@6
    24
	}
japod@6
    25
	
japod@6
    26
	
japod@6
    27
}