KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xml > dtm > DTMConfigurationException


1 /*
2  * Copyright 1999-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 /*
17  * $Id: DTMConfigurationException.java,v 1.4 2004/02/16 23:03:44 minchau Exp $
18  */

19 package org.apache.xml.dtm;
20
21 import javax.xml.transform.SourceLocator JavaDoc;
22
23 /**
24  * Indicates a serious configuration error.
25  */

26 public class DTMConfigurationException extends DTMException {
27
28     /**
29      * Create a new <code>DTMConfigurationException</code> with no
30      * detail mesage.
31      */

32     public DTMConfigurationException() {
33         super("Configuration Error");
34     }
35
36     /**
37      * Create a new <code>DTMConfigurationException</code> with
38      * the <code>String </code> specified as an error message.
39      *
40      * @param msg The error message for the exception.
41      */

42     public DTMConfigurationException(String JavaDoc msg) {
43         super(msg);
44     }
45
46     /**
47      * Create a new <code>DTMConfigurationException</code> with a
48      * given <code>Exception</code> base cause of the error.
49      *
50      * @param e The exception to be encapsulated in a
51      * DTMConfigurationException.
52      */

53     public DTMConfigurationException(Throwable JavaDoc e) {
54         super(e);
55     }
56
57     /**
58      * Create a new <code>DTMConfigurationException</code> with the
59      * given <code>Exception</code> base cause and detail message.
60      *
61      * @param e The exception to be encapsulated in a
62      * DTMConfigurationException
63      * @param msg The detail message.
64      * @param e The exception to be wrapped in a DTMConfigurationException
65      */

66     public DTMConfigurationException(String JavaDoc msg, Throwable JavaDoc e) {
67         super(msg, e);
68     }
69
70     /**
71      * Create a new DTMConfigurationException from a message and a Locator.
72      *
73      * <p>This constructor is especially useful when an application is
74      * creating its own exception from within a DocumentHandler
75      * callback.</p>
76      *
77      * @param message The error or warning message.
78      * @param locator The locator object for the error or warning.
79      */

80     public DTMConfigurationException(String JavaDoc message,
81                                              SourceLocator JavaDoc locator) {
82         super(message, locator);
83     }
84
85     /**
86      * Wrap an existing exception in a DTMConfigurationException.
87      *
88      * @param message The error or warning message, or null to
89      * use the message from the embedded exception.
90      * @param locator The locator object for the error or warning.
91      * @param e Any exception.
92      */

93     public DTMConfigurationException(String JavaDoc message,
94                                              SourceLocator JavaDoc locator,
95                                              Throwable JavaDoc e) {
96         super(message, locator, e);
97     }
98 }
99
Popular Tags