|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| ExitException.java | - | 100% | 100% | 100% |
|
||||||||||||||
| 1 |
package abbot;
|
|
| 2 |
|
|
| 3 |
/** Provide a tagging interface and storage for attempted exits from code
|
|
| 4 |
under test.
|
|
| 5 |
*/
|
|
| 6 |
public class ExitException extends SecurityException { |
|
| 7 |
private int status; |
|
| 8 | 13 |
public ExitException(String msg, int status) { |
| 9 | 13 |
super(msg + " (" + status + ") on " + Thread.currentThread()); |
| 10 | 13 |
this.status = status;
|
| 11 | 13 |
Log.log("Exit exception created at "
|
| 12 |
+ Log.getStack(Log.FULL_STACK, this));
|
|
| 13 |
} |
|
| 14 | 2 |
public int getStatus() { |
| 15 | 2 |
return status;
|
| 16 |
} |
|
| 17 |
} |
|
| 18 |
|
|
||||||||||