Modifier and Type | Field and Description |
---|---|
pack-priv Throwable | containedException
Field containedException specifies a wrapped exception. |
pack-priv SourceLocator | locator
Field locator specifies where the error occurred |
private static final long |
Access | Constructor and Description |
---|---|
public | |
public | TransformerException(Throwable
The exception to be wrapped. e)Create a new TransformerException wrapping an existing exception. |
public | TransformerException(String
The error or warning message, or null to
use the message from the embedded exception. message, Throwable Any exception e)Wrap an existing exception in a TransformerException. |
public | TransformerException(String
The error or warning message. message, SourceLocator The locator object for the error or warning. locator)Create a new TransformerException from a message and a Locator. |
public | TransformerException(String
The error or warning message, or null to
use the message from the embedded exception. message, SourceLocator The locator object for the error or warning. locator, Throwable Any exception e)Wrap an existing exception in a TransformerException. |
Modifier and Type | Method and Description |
---|---|
public Throwable | Returns: the cause, or null if unknownOverrides java. null if the
cause is nonexistent or unknown.
|
public Throwable | Returns: An Throwable object, or null.This method retrieves an exception that this exception wraps. |
public String | Returns: A string with location info, or null if there is no location information.Get the location information as a string. |
private String | |
public SourceLocator | Returns: A SourceLocator object, or null if none was specified.Method getLocator retrieves an instance of a SourceLocator object that specifies where an error occurred. |
public String | Returns: AString representing the error message with
location information appended.Get the error message with location information appended. |
private ProtectionDomain | |
public synchronized Throwable | Returns: a reference to thisThrowable instance.the cause (which is saved for later retrieval by the
cause)getCause() method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)Overrides java. |
public void | printStackTrace()
Overrides java. |
public void | printStackTrace(PrintStream
The stream where the dump will be sent to. s)Overrides java. |
public void | printStackTrace(PrintWriter
The writer where the dump will be sent to. s)Overrides java. |
public void | setLocator(SourceLocator
A SourceLocator object, or null to clear the location. location)Method setLocator sets an instance of a SourceLocator object that specifies where an error occurred. |
containedException | back to summary |
---|---|
pack-priv Throwable containedException Field containedException specifies a wrapped exception. May be null. |
locator | back to summary |
---|---|
pack-priv SourceLocator locator Field locator specifies where the error occurred
|
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID |
TransformerException | back to summary |
---|---|
public TransformerException(String message) Create a new TransformerException.
|
TransformerException | back to summary |
---|---|
public TransformerException(Throwable e) Create a new TransformerException wrapping an existing exception.
|
TransformerException | back to summary |
---|---|
public TransformerException(String message, Throwable e) Wrap an existing exception in a TransformerException. This is used for throwing processor exceptions before the processing has started. |
TransformerException | back to summary |
---|---|
public TransformerException(String message, SourceLocator locator) 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.
|
TransformerException | back to summary |
---|---|
public TransformerException(String message, SourceLocator locator, Throwable e) Wrap an existing exception in a TransformerException.
|
getCause | back to summary |
---|---|
public Throwable getCause() Overrides java. Returns the cause of this throwable or |
getException | back to summary |
---|---|
public Throwable getException() This method retrieves an exception that this exception wraps. |
getLocationAsString | back to summary |
---|---|
public String getLocationAsString() Get the location information as a string.
|
getLocationString | back to summary |
---|---|
private String getLocationString() Constructs the location string.
|
getLocator | back to summary |
---|---|
public SourceLocator getLocator() Method getLocator retrieves an instance of a SourceLocator object that specifies where an error occurred.
|
getMessageAndLocation | back to summary |
---|---|
public String getMessageAndLocation() Get the error message with location information appended.
|
getNonPrivDomain | back to summary |
---|---|
private ProtectionDomain getNonPrivDomain() Creates a ProtectionDomain that has no permission.
|
initCause | back to summary |
---|---|
public synchronized Throwable initCause(Throwable cause) Overrides java. 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
|
printStackTrace | back to summary |
---|---|
public void printStackTrace() Overrides java. Print the trace of methods from where the error originated. This will trace all nested exception objects, as well as this object.
|
printStackTrace | back to summary |
---|---|
public void printStackTrace(PrintStream s) Overrides java. Print the trace of methods from where the error originated. This will trace all nested exception objects, as well as this object.
|
printStackTrace | back to summary |
---|---|
public void printStackTrace(PrintWriter s) Overrides java. Print the trace of methods from where the error originated. This will trace all nested exception objects, as well as this object.
|
setLocator | back to summary |
---|---|
public void setLocator(SourceLocator location) Method setLocator sets an instance of a SourceLocator object that specifies where an error occurred.
|