Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
javax.xml.transform

Class TransformerException

java.lang.Object
|
+--java.lang.Throwable
   |
   +--java.lang.Exception
      |
      +--javax.xml.transform.TransformerException


public class TransformerException

extends Exception

Encapsulates a problem exposed during a transformation.

Author:

Constructor Summary

TransformerException(java.lang.String msg)

TransformerException(java.lang.Throwable cause)

TransformerException(java.lang.String msg, java.lang.Throwable cause)

TransformerException(java.lang.String msg, javax.xml.transform.SourceLocator locator)

TransformerException(java.lang.String msg, javax.xml.transform.SourceLocator locator, java.lang.Throwable cause)

Method Summary

java.lang.ThrowablegetCause()

Returns the root cause of this exception, or null if none is known.
java.lang.ThrowablegetException()

Synonym for #getCause.
java.lang.StringgetLocationAsString()

Returns a readable version of the locator info, or null if there is no locator.
javax.xml.transform.SourceLocatorgetLocator()

java.lang.StringgetMessageAndLocation()

Returns this exception's message, with readable location information appended if it is available.
synchronized java.lang.ThrowableinitCause(java.lang.Throwable cause)

Records the root cause of this exception; may be called only once, normally during initialization.
voidprintStackTrace()

voidprintStackTrace(java.io.PrintStream stream)

voidprintStackTrace(java.io.PrintWriter writer)

voidsetLocator(javax.xml.transform.SourceLocator location)

Constructor Details

TransformerException

public TransformerException(java.lang.String msg)

Parameters:


TransformerException

public TransformerException(java.lang.String msg, java.lang.Throwable cause)

Parameters:


TransformerException

public TransformerException(java.lang.String msg, javax.xml.transform.SourceLocator locator)

Parameters:


TransformerException

public TransformerException(java.lang.String msg, javax.xml.transform.SourceLocator locator, java.lang.Throwable cause)

Parameters:


TransformerException

public TransformerException(java.lang.Throwable cause)

Parameters:


Method Details

getCause

public Throwable getCause()

Returns the root cause of this exception, or null if none is known.


getException

public Throwable getException()

Synonym for #getCause.


getLocationAsString

public String getLocationAsString()

Returns a readable version of the locator info, or null if there is no locator.


getLocator

public SourceLocator getLocator()


getMessageAndLocation

public String getMessageAndLocation()

Returns this exception's message, with readable location information appended if it is available.


initCause

public synchronized Throwable initCause(java.lang.Throwable cause)

Records the root cause of this exception; may be called only once, normally during initialization.

Parameters:


printStackTrace

public void printStackTrace()


printStackTrace

public void printStackTrace(java.io.PrintStream stream)

Parameters:


printStackTrace

public void printStackTrace(java.io.PrintWriter writer)

Parameters:


setLocator

public void setLocator(javax.xml.transform.SourceLocator location)

Parameters: