01: package net.sf.saxon.type;
02:
03: import javax.xml.transform.SourceLocator;
04: import javax.xml.transform.TransformerConfigurationException;
05:
06: /**
07: * An exception that identifies an error in reading, parsing, or
08: * validating a schema.
09: */
10:
11: public class SchemaException extends TransformerConfigurationException {
12:
13: /**
14: * Creates a new XMLException with no message
15: * or nested Exception.
16: */
17:
18: public SchemaException() {
19: super ();
20: }
21:
22: public SchemaException(String message, SourceLocator locator) {
23: super (message, locator);
24: }
25:
26: /**
27: * Creates a new XMLException with the given message.
28: *
29: * @param message the message for this Exception
30: */
31:
32: public SchemaException(String message) {
33: super (message);
34: }
35:
36: /**
37: * Creates a new XMLException with the given nested
38: * exception.
39: *
40: * @param exception the nested exception
41: */
42:
43: public SchemaException(Exception exception) {
44: super (exception);
45: }
46:
47: /**
48: * Creates a new XMLException with the given message
49: * and nested exception.
50: *
51: * @param message the detail message for this exception
52: * @param exception the nested exception
53: */
54:
55: public SchemaException(String message, Exception exception) {
56: super (message, exception);
57: }
58:
59: }
60:
61: //
62: // The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
63: // you may not use this file except in compliance with the License. You may obtain a copy of the
64: // License at http://www.mozilla.org/MPL/
65: //
66: // Software distributed under the License is distributed on an "AS IS" basis,
67: // WITHOUT WARRANTY OF ANY KIND, either express or implied.
68: // See the License for the specific language governing rights and limitations under the License.
69: //
70: // The Original Code is: all this file.
71: //
72: // The Initial Developer of the Original Code is Saxonica Limited
73: //
74: // Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
75: //
76: // Contributor(s): none
77: //
|