Added in API level 8

TransformerException

public class TransformerException
extends Exception

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ javax.xml.transform.TransformerException


This class specifies an exceptional condition that occurred during the transformation process.

Summary

Public constructors

TransformerException(String message)

Create a new TransformerException.

TransformerException(String message, Throwable e)

Wrap an existing exception in a TransformerException.

TransformerException(String message, SourceLocator locator)

Create a new TransformerException from a message and a Locator.

TransformerException(String message, SourceLocator locator, Throwable e)

Wrap an existing exception in a TransformerException.

TransformerException(Throwable e)

Create a new TransformerException wrapping an existing exception.

Public methods

Throwable getCause()

Returns the cause of this throwable or null if the cause is nonexistent or unknown.

Throwable getException()

This method retrieves an exception that this exception wraps.

String getLocationAsString()

Get the location information as a string.

SourceLocator getLocator()

Method getLocator retrieves an instance of a SourceLocator object that specifies where an error occurred.

String getMessageAndLocation()

Get the error message with location information appended.

Throwable initCause(Throwable cause)

Initializes the cause of this throwable to the specified value.

void printStackTrace()

Print the the trace of methods from where the error originated.

void printStackTrace(PrintWriter s)

Print the the trace of methods from where the error originated.

void printStackTrace(PrintStream s)

Print the the trace of methods from where the error originated.

void setLocator(SourceLocator location)

Method setLocator sets an instance of a SourceLocator object that specifies where an error occurred.

Inherited methods