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

Class TransformerException

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

Known Direct Subclasses:
TransformerConfigurationException


public class TransformerException
extends java.lang.Exception

Encapsulates a problem exposed during a transformation.
Author:
Andrew Selkirk, David Brownell

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, SourceLocator locator)

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

Method Summary

java.lang.Throwable

getCause()

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

java.lang.Throwable

getException()

Synonym for #getCause.

java.lang.String

getLocationAsString()

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

SourceLocator

getLocator()

java.lang.String

getMessageAndLocation()

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

synchronized java.lang.Throwable

initCause(java.lang.Throwable cause)

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

void

printStackTrace()

void

printStackTrace(java.io.PrintStream stream)

void

printStackTrace(java.io.PrintWriter writer)

void

setLocator(SourceLocator location)

Constructor Details

TransformerException

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

Parameters:
msg
cause

TransformerException

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

Parameters:
msg
locator
cause

TransformerException

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

Parameters:
msg
locator

TransformerException

public TransformerException(java.lang.String msg)

Parameters:
msg

TransformerException

public TransformerException(java.lang.Throwable cause)

Parameters:
cause

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:
cause

printStackTrace

public void printStackTrace()


printStackTrace

public void printStackTrace(java.io.PrintStream stream)

Parameters:
stream

printStackTrace

public void printStackTrace(java.io.PrintWriter writer)

Parameters:
writer

setLocator

public void setLocator(SourceLocator location)

Parameters:
location