1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.jdiagnose;
17
18 import org.jdiagnose.exception.NestableRuntimeException;
19
20 /***
21 * Used by DiagnosticUnit's assert* methods to indicate that an
22 * Assertion has failed.
23 * User: jamie
24 * Date: May 29, 2004
25 * Time: 10:32:17 PM
26 */
27 public class DiagnosticAssertionException extends NestableRuntimeException {
28
29 /***
30 * Construct an empty exception
31 */
32 public DiagnosticAssertionException() {
33 }
34
35 /***
36 * Construct an exception with a message
37 * @param message the message
38 */
39 public DiagnosticAssertionException(String message) {
40 super(message);
41 }
42
43 /***
44 * Construct an exception with a message and nested throwable
45 * @param message information about this exception
46 * @param throwable a nested exception
47 */
48 public DiagnosticAssertionException(String message, Throwable throwable) {
49 super(message, throwable);
50 }
51
52 /***
53 * Construct an exception with a nested throwable. The nested throwables
54 * exception's message is used as this exceptions message.
55 * @param throwable a nested exception
56 */
57 public DiagnosticAssertionException(Throwable throwable) {
58 super(throwable);
59 }
60
61 }