Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ExpectJException |
|
| 1.0;1 |
1 | package expectj; | |
2 | ||
3 | /** | |
4 | * This class extends the Exception class and encapsulates other exceptions. | |
5 | * | |
6 | * @author Sachin Shekar Shetty | |
7 | */ | |
8 | public class ExpectJException extends Exception { | |
9 | /** | |
10 | * Create a new exception with an explanatory message. | |
11 | * @param message An explanation of what went wrong. | |
12 | */ | |
13 | ExpectJException(String message) { | |
14 | 0 | super(message); |
15 | 0 | } |
16 | ||
17 | /** | |
18 | * Create a new exception with an explanatory message and a reference to an exception | |
19 | * that made us throw this one. | |
20 | * @param message An explanation of what went wrong. | |
21 | * @param cause Another exception that is the reason to throw this one. | |
22 | */ | |
23 | ExpectJException(String message, Throwable cause) { | |
24 | 0 | super(message, cause); |
25 | 0 | } |
26 | } |