1 | package dmg.util ; |
2 | |
3 | /** |
4 | * |
5 | * |
6 | * @author Patrick Fuhrmann |
7 | * @version 0.1, 15 Feb 1998 |
8 | * |
9 | * The CommandExitException is rethrown by the |
10 | * CommandInterpreter whenever it is received. |
11 | */ |
12 | public class CommandExitException extends CommandException { |
13 | static final long serialVersionUID = 363676636532817904L; |
14 | |
15 | public CommandExitException() |
16 | { |
17 | this(""); |
18 | } |
19 | |
20 | public CommandExitException(String msg) |
21 | { |
22 | this(msg, 0); |
23 | } |
24 | |
25 | public CommandExitException(String msg, int exitCode) |
26 | { |
27 | this(msg, exitCode, null); |
28 | } |
29 | |
30 | public CommandExitException(String msg, int exitCode, Throwable cause) |
31 | { |
32 | super(exitCode, msg, cause); |
33 | } |
34 | |
35 | public int getExitCode(){ return getErrorCode() ; } |
36 | } |