Debian Codegraph @

net/sf/saxon/type/SchemaException.java

raw symbols SCIP
1 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2018 Saxonica Limited.
3 // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
6 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7
8 package net.sf.saxon.type;
9
10 import net.sf.saxon.expr.parser.Location;
11 import net.sf.saxon.trans.XPathException;
12
13 /**
14 * An exception that identifies an error in reading, parsing, or
15 * validating a schema.
16 * <p>The reason this extends TransformerException is because of the pervasive use of the
17 * JAXP ErrorListener (which accepts a TransformerException) to provide error handling</p>
18 */
19
20 public class SchemaException extends XPathException {
21
22 public SchemaException(String message, Location locator) {
23 super(message, null, 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(Throwable 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, Throwable exception) {
56 super(message, exception);
57 }
58
59 }
60