1 | package dmg.util ; |
2 | |
3 | /** |
4 | * |
5 | * |
6 | * @author Patrick Fuhrmann |
7 | * @version 0.1, 15 Feb 1998 |
8 | * |
9 | * The CommandThrowable Exception is thrown by the |
10 | * CommandInterpreter if the called method throws an |
11 | * Exception. This Exception is then encapsulated into |
12 | * the CommandThrowable Exception. |
13 | * |
14 | */ |
15 | public class CommandThrowableException extends CommandException |
16 | { |
17 | static final long serialVersionUID = -8026018953087169917L; |
18 | |
19 | public CommandThrowableException(String str, Throwable target) |
20 | { |
21 | super(3, str, target); |
22 | } |
23 | |
24 | /** |
25 | * getTargetException return the original Exception which |
26 | * caused the trouble. |
27 | */ |
28 | public Throwable getTargetException() |
29 | { |
30 | return getCause(); |
31 | } |
32 | } |