KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > xml > transform > TransformerConfigurationException


1 /*
2  * @(#)TransformerConfigurationException.java 1.14 04/07/26
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7 package javax.xml.transform;
8
9 /**
10  * Indicates a serious configuration error.
11  */

12 public class TransformerConfigurationException extends TransformerException JavaDoc {
13
14     /**
15      * Create a new <code>TransformerConfigurationException</code> with no
16      * detail mesage.
17      */

18     public TransformerConfigurationException() {
19         super("Configuration Error");
20     }
21
22     /**
23      * Create a new <code>TransformerConfigurationException</code> with
24      * the <code>String </code> specified as an error message.
25      *
26      * @param msg The error message for the exception.
27      */

28     public TransformerConfigurationException(String JavaDoc msg) {
29         super(msg);
30     }
31
32     /**
33      * Create a new <code>TransformerConfigurationException</code> with a
34      * given <code>Exception</code> base cause of the error.
35      *
36      * @param e The exception to be encapsulated in a
37      * TransformerConfigurationException.
38      */

39     public TransformerConfigurationException(Throwable JavaDoc e) {
40         super(e);
41     }
42
43     /**
44      * Create a new <code>TransformerConfigurationException</code> with the
45      * given <code>Exception</code> base cause and detail message.
46      *
47      * @param e The exception to be encapsulated in a
48      * TransformerConfigurationException
49      * @param msg The detail message.
50      */

51     public TransformerConfigurationException(String JavaDoc msg, Throwable JavaDoc e) {
52         super(msg, e);
53     }
54
55     /**
56      * Create a new TransformerConfigurationException from a message and a Locator.
57      *
58      * <p>This constructor is especially useful when an application is
59      * creating its own exception from within a DocumentHandler
60      * callback.</p>
61      *
62      * @param message The error or warning message.
63      * @param locator The locator object for the error or warning.
64      */

65     public TransformerConfigurationException(String JavaDoc message,
66                                              SourceLocator JavaDoc locator) {
67         super(message, locator);
68     }
69
70     /**
71      * Wrap an existing exception in a TransformerConfigurationException.
72      *
73      * @param message The error or warning message, or null to
74      * use the message from the embedded exception.
75      * @param locator The locator object for the error or warning.
76      * @param e Any exception.
77      */

78     public TransformerConfigurationException(String JavaDoc message,
79                                              SourceLocator JavaDoc locator,
80                                              Throwable JavaDoc e) {
81         super(message, locator, e);
82     }
83 }
84
Popular Tags