01: package abbot;
02:
03: /** Provide a tagging interface and storage for attempted exits from code
04: under test.
05: */
06: public class ExitException extends SecurityException {
07: private int status;
08:
09: public ExitException(String msg, int status) {
10: super (msg + " (" + status + ") on " + Thread.currentThread());
11: this .status = status;
12: Log.log("Exit exception created at "
13: + Log.getStack(Log.FULL_STACK, this ));
14: }
15:
16: public int getStatus() {
17: return status;
18: }
19: }
|