View Javadoc

1   /*
2    * Copyright 2001-2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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  }