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