01: package U2.T2.Msg;
02:
03: /**
04: * This is to be thrown by a test engine when it thinks it is unsafe
05: * to continue its operation. The engine should exit when it throws
06: * this exception.
07: */
08: public class T2Error extends Error {
09:
10: public static final String INCOMPLETENESS = "INCOMPLETENESS";
11: public static final String ABORT = "ABORT";
12: public static final String BUG = "BUG?";
13: static public final String DEVEL_WARNING = "DEVEL. WARNING";
14:
15: public T2Error(String msg) {
16: super (msg);
17: }
18:
19: public T2Error(String msg, Throwable cause) {
20:
21: super (msg + "\n" + cause.getMessage(), cause);
22: }
23:
24: }
|