Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openjdk-multiarch-jdk8u
Path: blob/aarch64-shenandoah-jdk8u272-b10/jaxp/src/javax/xml/transform/TransformerConfigurationException.java
32285 views
1
/*
2
* Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License version 2 only, as
7
* published by the Free Software Foundation. Oracle designates this
8
* particular file as subject to the "Classpath" exception as provided
9
* by Oracle in the LICENSE file that accompanied this code.
10
*
11
* This code is distributed in the hope that it will be useful, but WITHOUT
12
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14
* version 2 for more details (a copy is included in the LICENSE file that
15
* accompanied this code).
16
*
17
* You should have received a copy of the GNU General Public License version
18
* 2 along with this work; if not, write to the Free Software Foundation,
19
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20
*
21
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22
* or visit www.oracle.com if you need additional information or have any
23
* questions.
24
*/
25
26
package javax.xml.transform;
27
28
/**
29
* Indicates a serious configuration error.
30
*/
31
public class TransformerConfigurationException extends TransformerException {
32
33
private static final long serialVersionUID = 1285547467942875745L;
34
35
/**
36
* Create a new <code>TransformerConfigurationException</code> with no
37
* detail mesage.
38
*/
39
public TransformerConfigurationException() {
40
super("Configuration Error");
41
}
42
43
/**
44
* Create a new <code>TransformerConfigurationException</code> with
45
* the <code>String </code> specified as an error message.
46
*
47
* @param msg The error message for the exception.
48
*/
49
public TransformerConfigurationException(String msg) {
50
super(msg);
51
}
52
53
/**
54
* Create a new <code>TransformerConfigurationException</code> with a
55
* given <code>Exception</code> base cause of the error.
56
*
57
* @param e The exception to be encapsulated in a
58
* TransformerConfigurationException.
59
*/
60
public TransformerConfigurationException(Throwable e) {
61
super(e);
62
}
63
64
/**
65
* Create a new <code>TransformerConfigurationException</code> with the
66
* given <code>Exception</code> base cause and detail message.
67
*
68
* @param e The exception to be encapsulated in a
69
* TransformerConfigurationException
70
* @param msg The detail message.
71
*/
72
public TransformerConfigurationException(String msg, Throwable e) {
73
super(msg, e);
74
}
75
76
/**
77
* Create a new TransformerConfigurationException from a message and a Locator.
78
*
79
* <p>This constructor is especially useful when an application is
80
* creating its own exception from within a DocumentHandler
81
* callback.</p>
82
*
83
* @param message The error or warning message.
84
* @param locator The locator object for the error or warning.
85
*/
86
public TransformerConfigurationException(String message,
87
SourceLocator locator) {
88
super(message, locator);
89
}
90
91
/**
92
* Wrap an existing exception in a TransformerConfigurationException.
93
*
94
* @param message The error or warning message, or null to
95
* use the message from the embedded exception.
96
* @param locator The locator object for the error or warning.
97
* @param e Any exception.
98
*/
99
public TransformerConfigurationException(String message,
100
SourceLocator locator,
101
Throwable e) {
102
super(message, locator, e);
103
}
104
}
105
106