| public class javax.xml.transform TransformerException
|
Java SE 6 |
| Constructors | |||||||
|---|---|---|---|---|---|---|---|
| public | TransformerException(String message) Details
Create a new TransformerException.
| ||||||
| public | TransformerException(Throwable e) Details
Create a new TransformerException wrapping an existing exception.
| ||||||
| public | TransformerException(String message, Throwable e) Details
Wrap an existing exception in a TransformerException.
This is used for throwing processor exceptions before the processing has started.
| ||||||
| public | TransformerException(String message, SourceLocator locator) Details
Create a new TransformerException from a message and a Locator.
This constructor is especially useful when an application is creating its own exception from within a DocumentHandler callback.
| ||||||
| public | TransformerException(String message, SourceLocator locator, Throwable e) Details
Wrap an existing exception in a TransformerException.
| ||||||
| Methods | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| public Throwable | initCause(Throwable cause) Details
Initializes the cause of this throwable to the specified value.
(The cause is the throwable that caused this throwable to get thrown.)
This method can be called at most once. It is generally called from
within the constructor, or immediately after creating the
throwable. If this throwable was created
with
| ||||||||
| public void | printStackTrace() Print the the trace of methods from where the error originated. This will trace all nested exception objects, as well as this object. | ||||||||
| public void | printStackTrace(PrintStream s) Details
Print the the trace of methods from where the error
originated. This will trace all nested exception
objects, as well as this object.
| ||||||||
| public void | printStackTrace(PrintWriter s) Details
Print the the trace of methods from where the error
originated. This will trace all nested exception
objects, as well as this object.
| ||||||||
| Properties | |||||
|---|---|---|---|---|---|
| public Throwable | getCause() Returns the cause of this throwable or null if the
cause is nonexistent or unknown. (The cause is the throwable that
caused this throwable to get thrown.)
| ||||
| public Throwable | getException() Details
This method retrieves an exception that this exception wraps.
| ||||
| public String | getLocationAsString() Details
Get the location information as a string.
| ||||
| public void | setLocator(SourceLocator location) Details
Method setLocator sets an instance of a SourceLocator
object that specifies where an error occured.
| ||||
| public SourceLocator | getLocator() Details
Method getLocator retrieves an instance of a SourceLocator
object that specifies where an error occured.
| ||||
| public String | getMessageAndLocation() Details
Get the error message with location information
appended.
| ||||
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2009 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|