Path: blob/aarch64-shenandoah-jdk8u272-b10/jaxp/src/javax/xml/transform/TransformerConfigurationException.java
32285 views
/*1* Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package javax.xml.transform;2627/**28* Indicates a serious configuration error.29*/30public class TransformerConfigurationException extends TransformerException {3132private static final long serialVersionUID = 1285547467942875745L;3334/**35* Create a new <code>TransformerConfigurationException</code> with no36* detail mesage.37*/38public TransformerConfigurationException() {39super("Configuration Error");40}4142/**43* Create a new <code>TransformerConfigurationException</code> with44* the <code>String </code> specified as an error message.45*46* @param msg The error message for the exception.47*/48public TransformerConfigurationException(String msg) {49super(msg);50}5152/**53* Create a new <code>TransformerConfigurationException</code> with a54* given <code>Exception</code> base cause of the error.55*56* @param e The exception to be encapsulated in a57* TransformerConfigurationException.58*/59public TransformerConfigurationException(Throwable e) {60super(e);61}6263/**64* Create a new <code>TransformerConfigurationException</code> with the65* given <code>Exception</code> base cause and detail message.66*67* @param e The exception to be encapsulated in a68* TransformerConfigurationException69* @param msg The detail message.70*/71public TransformerConfigurationException(String msg, Throwable e) {72super(msg, e);73}7475/**76* Create a new TransformerConfigurationException from a message and a Locator.77*78* <p>This constructor is especially useful when an application is79* creating its own exception from within a DocumentHandler80* callback.</p>81*82* @param message The error or warning message.83* @param locator The locator object for the error or warning.84*/85public TransformerConfigurationException(String message,86SourceLocator locator) {87super(message, locator);88}8990/**91* Wrap an existing exception in a TransformerConfigurationException.92*93* @param message The error or warning message, or null to94* use the message from the embedded exception.95* @param locator The locator object for the error or warning.96* @param e Any exception.97*/98public TransformerConfigurationException(String message,99SourceLocator locator,100Throwable e) {101super(message, locator, e);102}103}104105106