package exchange;

public class ExistingCurrencyException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Currency c;

	public ExistingCurrencyException(Currency c) {
		super("Currency " + c.name() + " yet existing");
		this.c = c;
	}

	public Currency currency() {
		return c;
	}

}

