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.NestableException;
19
20 /***
21 * A Diagnostic exception. Usually used when a Diagnostic has failed.
22 * User: jamie Date: May 29, 2004 Time: 10:32:17 PM
23 */
24 public class DiagnosticException extends NestableException {
25
26 /***
27 * Construct an empty exception
28 */
29 public DiagnosticException() {
30 }
31
32 /***
33 * Construct an exception with a message
34 * @param message the message
35 */
36 public DiagnosticException(String message) {
37 super(message);
38 }
39
40 /***
41 * Construct an exception with a message and nested throwable
42 * @param message information about this exception
43 * @param throwable a nested exception
44 */
45 public DiagnosticException(String message, Throwable throwable) {
46 super(message, throwable);
47 }
48
49 /***
50 * Construct an exception with a nested throwable. The nested throwables
51 * exception's message is used as this exceptions message.
52 * @param throwable a nested exception
53 */
54 public DiagnosticException(Throwable throwable) {
55 super(throwable);
56 }
57 }