javax.xml.transform

Class TransformerException

public class TransformerException extends Exception

Encapsulates a problem exposed during a transformation.

Version: 1.0

Author: Andrew Selkirk, David Brownell

Constructor Summary
TransformerException(String msg)
TransformerException(Throwable cause)
TransformerException(String msg, Throwable cause)
TransformerException(String msg, SourceLocator locator)
TransformerException(String msg, SourceLocator locator, Throwable cause)
Method Summary
ThrowablegetCause()
Returns the root cause of this exception, or null if none is known.
ThrowablegetException()
Synonym for TransformerException.
StringgetLocationAsString()
Returns a readable version of the locator info, or null if there is no locator.
SourceLocatorgetLocator()
StringgetMessageAndLocation()
Returns this exception's message, with readable location information appended if it is available.
ThrowableinitCause(Throwable cause)
Records the root cause of this exception; may be called only once, normally during initialization.
voidprintStackTrace()
voidprintStackTrace(PrintStream stream)
voidprintStackTrace(PrintWriter writer)
voidsetLocator(SourceLocator location)

Constructor Detail

TransformerException

public TransformerException(String msg)

TransformerException

public TransformerException(Throwable cause)

TransformerException

public TransformerException(String msg, Throwable cause)

TransformerException

public TransformerException(String msg, SourceLocator locator)

TransformerException

public TransformerException(String msg, SourceLocator locator, Throwable cause)

Method Detail

getCause

public Throwable getCause()
Returns the root cause of this exception, or null if none is known.

getException

public Throwable getException()
Synonym for TransformerException.

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 Throwable initCause(Throwable cause)
Records the root cause of this exception; may be called only once, normally during initialization.

printStackTrace

public void printStackTrace()

printStackTrace

public void printStackTrace(PrintStream stream)

printStackTrace

public void printStackTrace(PrintWriter writer)

setLocator

public void setLocator(SourceLocator location)

Source code is under GPL (with library exception) in the JAXP project at http://www.gnu.org/software/classpathx/jaxp
This documentation was derived from that source code on 2013-01-12.