task2/solution01/src/org/apidesign/apifest08/currency/CannotConvertException.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Wed, 01 Oct 2008 10:43:05 +0200
changeset 29 f6073056b9fe
parent 6 task1/solution01/src/org/apidesign/apifest08/currency/CannotConvertException.java@97662396c0fd
permissions -rw-r--r--
Getting ready for task2: copying all solutions to new locations
japod@6
     1
package org.apidesign.apifest08.currency;
japod@6
     2
japod@6
     3
/**
japod@6
     4
 * If something was wrong during converting currencies...
japod@6
     5
 * Eg. when the convertor is outdated
japod@6
     6
 * Should be a descendant of RuntimeException? Hmmms...
japod@6
     7
 * @author Ladislav Vitasek
japod@6
     8
 */
japod@6
     9
public class CannotConvertException extends RuntimeException {
japod@6
    10
    
japod@6
    11
    public CannotConvertException() {
japod@6
    12
japod@6
    13
    }
japod@6
    14
japod@6
    15
    public CannotConvertException(String message) {
japod@6
    16
        super(message);
japod@6
    17
    }
japod@6
    18
japod@6
    19
    public CannotConvertException(Throwable e) {
japod@6
    20
        super(e);
japod@6
    21
    }
japod@6
    22
japod@6
    23
    public CannotConvertException(String message, Throwable cause) {
japod@6
    24
        super(message, cause);
japod@6
    25
    }
japod@6
    26
}