Class TransformerConfigurationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.xml.transform.TransformerException
javax.xml.transform.TransformerConfigurationException
- All Implemented Interfaces:
Serializable
Indicates a serious configuration error.
- Since:
- 1.4
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a newTransformerConfigurationExceptionwith no detail message.Create a newTransformerConfigurationExceptionwith theStringspecified as an error message.Create a newTransformerConfigurationExceptionwith the givenExceptionbase cause and detail 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.Create a newTransformerConfigurationExceptionwith a givenExceptionbase cause of the error. -
Method Summary
Methods declared in class javax.xml.transform.TransformerException
getCause, getException, getLocationAsString, getLocator, getMessageAndLocation, initCause, printStackTrace, printStackTrace, printStackTrace, setLocatorMethods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, setStackTrace, toString
-
Constructor Details
-
TransformerConfigurationException
public TransformerConfigurationException()Create a newTransformerConfigurationExceptionwith no detail message. -
TransformerConfigurationException
Create a newTransformerConfigurationExceptionwith theStringspecified as an error message.- Parameters:
msg- The error message for the exception.
-
TransformerConfigurationException
Create a newTransformerConfigurationExceptionwith a givenExceptionbase cause of the error.- Parameters:
e- The exception to be encapsulated in a TransformerConfigurationException.
-
TransformerConfigurationException
-
TransformerConfigurationException
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
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.
-