TransformerConfigurationException (Java Platform SE 8 ) (original) (raw)
- java.lang.Throwable
- java.lang.Exception
- javax.xml.transform.TransformerException
* * javax.xml.transform.TransformerConfigurationException
- javax.xml.transform.TransformerException
- java.lang.Exception
All Implemented Interfaces:
Serializable
public class TransformerConfigurationException
extends TransformerException
Indicates a serious configuration error.
See Also:
Serialized Form
Constructor Summary
Constructors
Constructor Description TransformerConfigurationException() Create a new TransformerConfigurationException with no detail mesage. TransformerConfigurationException(String msg) Create a new TransformerConfigurationException with the String specified as an error message. TransformerConfigurationException(String message,SourceLocator locator) Create a new TransformerConfigurationException from a message and a Locator. TransformerConfigurationException(String message,SourceLocator locator,Throwable e) Wrap an existing exception in a TransformerConfigurationException. TransformerConfigurationException(String msg,Throwable e) Create a new TransformerConfigurationException with the given Exception base cause and detail message. TransformerConfigurationException(Throwable e) Create a new TransformerConfigurationException with a given Exception base cause of the error. Method Summary
* ### Methods inherited from class javax.xml.transform.[TransformerException](../../../javax/xml/transform/TransformerException.html "class in javax.xml.transform") `[getCause](../../../javax/xml/transform/TransformerException.html#getCause--), [getException](../../../javax/xml/transform/TransformerException.html#getException--), [getLocationAsString](../../../javax/xml/transform/TransformerException.html#getLocationAsString--), [getLocator](../../../javax/xml/transform/TransformerException.html#getLocator--), [getMessageAndLocation](../../../javax/xml/transform/TransformerException.html#getMessageAndLocation--), [initCause](../../../javax/xml/transform/TransformerException.html#initCause-java.lang.Throwable-), [printStackTrace](../../../javax/xml/transform/TransformerException.html#printStackTrace--), [printStackTrace](../../../javax/xml/transform/TransformerException.html#printStackTrace-java.io.PrintStream-), [printStackTrace](../../../javax/xml/transform/TransformerException.html#printStackTrace-java.io.PrintWriter-), [setLocator](../../../javax/xml/transform/TransformerException.html#setLocator-javax.xml.transform.SourceLocator-)` * ### Methods inherited from class java.lang.[Throwable](../../../java/lang/Throwable.html "class in java.lang") `[addSuppressed](../../../java/lang/Throwable.html#addSuppressed-java.lang.Throwable-), [fillInStackTrace](../../../java/lang/Throwable.html#fillInStackTrace--), [getLocalizedMessage](../../../java/lang/Throwable.html#getLocalizedMessage--), [getMessage](../../../java/lang/Throwable.html#getMessage--), [getStackTrace](../../../java/lang/Throwable.html#getStackTrace--), [getSuppressed](../../../java/lang/Throwable.html#getSuppressed--), [setStackTrace](../../../java/lang/Throwable.html#setStackTrace-java.lang.StackTraceElement:A-), [toString](../../../java/lang/Throwable.html#toString--)` * ### Methods inherited from class java.lang.[Object](../../../java/lang/Object.html "class in java.lang") `[clone](../../../java/lang/Object.html#clone--), [equals](../../../java/lang/Object.html#equals-java.lang.Object-), [finalize](../../../java/lang/Object.html#finalize--), [getClass](../../../java/lang/Object.html#getClass--), [hashCode](../../../java/lang/Object.html#hashCode--), [notify](../../../java/lang/Object.html#notify--), [notifyAll](../../../java/lang/Object.html#notifyAll--), [wait](../../../java/lang/Object.html#wait--), [wait](../../../java/lang/Object.html#wait-long-), [wait](../../../java/lang/Object.html#wait-long-int-)`
Constructor Detail
* #### TransformerConfigurationException public TransformerConfigurationException() Create a new `TransformerConfigurationException` with no detail mesage. * #### TransformerConfigurationException public TransformerConfigurationException([String](../../../java/lang/String.html "class in java.lang") msg) Create a new `TransformerConfigurationException` with the `String ` specified as an error message. Parameters: `msg` \- The error message for the exception. * #### TransformerConfigurationException public TransformerConfigurationException([Throwable](../../../java/lang/Throwable.html "class in java.lang") e) Create a new `TransformerConfigurationException` with a given `Exception` base cause of the error. Parameters: `e` \- The exception to be encapsulated in a TransformerConfigurationException. * #### TransformerConfigurationException public TransformerConfigurationException([String](../../../java/lang/String.html "class in java.lang") msg, [Throwable](../../../java/lang/Throwable.html "class in java.lang") e) Create a new `TransformerConfigurationException` with the given `Exception` base cause and detail message. Parameters: `e` \- The exception to be encapsulated in a TransformerConfigurationException `msg` \- The detail message. * #### TransformerConfigurationException public TransformerConfigurationException([String](../../../java/lang/String.html "class in java.lang") message, [SourceLocator](../../../javax/xml/transform/SourceLocator.html "interface in javax.xml.transform") locator) Create a new TransformerConfigurationException from a message and a Locator. This constructor is especially useful when an application is creating its own exception from within a DocumentHandler callback. Parameters: `message` \- The error or warning message. `locator` \- The locator object for the error or warning. * #### TransformerConfigurationException public TransformerConfigurationException([String](../../../java/lang/String.html "class in java.lang") message, [SourceLocator](../../../javax/xml/transform/SourceLocator.html "interface in javax.xml.transform") locator, [Throwable](../../../java/lang/Throwable.html "class in java.lang") e) Wrap an existing exception in a TransformerConfigurationException. Parameters: `message` \- The error or warning message, or null to use the message from the embedded exception. `locator` \- The locator object for the error or warning. `e` \- Any exception.
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.