task2/solution01/src/org/apidesign/apifest08/currency/CannotConvertException.java
changeset 29 f6073056b9fe
parent 6 97662396c0fd
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/task2/solution01/src/org/apidesign/apifest08/currency/CannotConvertException.java	Wed Oct 01 10:43:05 2008 +0200
     1.3 @@ -0,0 +1,26 @@
     1.4 +package org.apidesign.apifest08.currency;
     1.5 +
     1.6 +/**
     1.7 + * If something was wrong during converting currencies...
     1.8 + * Eg. when the convertor is outdated
     1.9 + * Should be a descendant of RuntimeException? Hmmms...
    1.10 + * @author Ladislav Vitasek
    1.11 + */
    1.12 +public class CannotConvertException extends RuntimeException {
    1.13 +    
    1.14 +    public CannotConvertException() {
    1.15 +
    1.16 +    }
    1.17 +
    1.18 +    public CannotConvertException(String message) {
    1.19 +        super(message);
    1.20 +    }
    1.21 +
    1.22 +    public CannotConvertException(Throwable e) {
    1.23 +        super(e);
    1.24 +    }
    1.25 +
    1.26 +    public CannotConvertException(String message, Throwable cause) {
    1.27 +        super(message, cause);
    1.28 +    }
    1.29 +}