task2/solution10/src/org/apidesign/apifest08/currency/CurrencyNotAvailableException.java
changeset 42 2c8c32ad44f7
parent 41 a7e6f84fb078
child 44 6a500cd1e467
     1.1 --- a/task2/solution10/src/org/apidesign/apifest08/currency/CurrencyNotAvailableException.java	Tue Oct 07 01:18:23 2008 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,21 +0,0 @@
     1.4 -package org.apidesign.apifest08.currency;
     1.5 -
     1.6 -import java.util.*;
     1.7 -
     1.8 -public final class CurrencyNotAvailableException extends RuntimeException {
     1.9 -
    1.10 -	private final Currency currency;
    1.11 -
    1.12 -	CurrencyNotAvailableException(Currency currency) {
    1.13 -		this(currency, String.format("Currency %1$s not available", currency));	
    1.14 -	}
    1.15 -
    1.16 -	CurrencyNotAvailableException(Currency currency, String message) {
    1.17 -		super(message);
    1.18 -		this.currency = currency;
    1.19 -	}
    1.20 -
    1.21 -	public Currency getCurrency() {
    1.22 -		return currency;
    1.23 -	}
    1.24 -}