|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.xml.transform.TransformerException
public class TransformerException
An exception occurred during the transformation process.
| Constructor Summary | |
|---|---|
TransformerException(String msg)
Constructor with a detail message. |
|
TransformerException(String msg,
SourceLocator locator)
Constructor with a detail message and locator. |
|
TransformerException(String msg,
SourceLocator locator,
Throwable cause)
Constructor with detail message, locator and underlying cause. |
|
TransformerException(String msg,
Throwable cause)
Constructor with a detail message and underlying cause. |
|
TransformerException(Throwable cause)
Constructor with an underlying cause. |
|
| Method Summary | |
|---|---|
Throwable |
getCause()
Returns the underlying cause of this exception. |
Throwable |
getException()
Returns the underlying cause of this exception. |
String |
getLocationAsString()
Returns the location information as a string. |
SourceLocator |
getLocator()
Returns a locator indicating where the error occurred. |
String |
getMessageAndLocation()
Returns the exception message with location information appended. |
Throwable |
initCause(Throwable cause)
Initializes the root cause of this exception. |
void |
printStackTrace()
Print stack trace of this Throwable to System.err. |
void |
printStackTrace(PrintStream s)
Print the stack trace of this Throwable to the given stream. |
void |
printStackTrace(PrintWriter s)
Print the stack trace of this Throwable to the given PrintWriter. |
void |
setLocator(SourceLocator location)
Sets the locator indicating where the error occurred. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TransformerException(String msg)
public TransformerException(Throwable cause)
public TransformerException(String msg,
Throwable cause)
public TransformerException(String msg,
SourceLocator locator)
public TransformerException(String msg,
SourceLocator locator,
Throwable cause)
| Method Detail |
|---|
public SourceLocator getLocator()
public void setLocator(SourceLocator location)
public Throwable getException()
public Throwable getCause()
getCause in class Throwablepublic Throwable initCause(Throwable cause)
initCause in class Throwablecause - the underlying cause
IllegalArgumentException - if this exception is passed as the
argument
IllegalStateException - if a cause has already been
initializedpublic String getMessageAndLocation()
public String getLocationAsString()
public void printStackTrace()
ThrowableThe printed stack trace contains the result of toString() as the first line followed by one line for each stack trace element that contains the name of the method or constructor, optionally followed by the source file name and source file line number if available.
For JamaicaVM, this routine also works before System was initialized by using low-level exception printing mechanisms provided by class com.aicas.jamaica.lang.Debug.
printStackTrace in class Throwablepublic void printStackTrace(PrintStream s)
ThrowableThe printed stack trace contains the result of toString() as the first line followed by one line for each stack trace element that contains the name of the method or constructor, optionally followed by the source file name and source file line number if available.
For JamaicaVM, if printing to the stream causes another exception, low-level exception printing mechanisms provided by class com.aicas.jamaica.lang.Debug will be used to print the exception to stderr.
printStackTrace in class Throwables - the stream to print to.public void printStackTrace(PrintWriter s)
ThrowableThe printed stack trace contains the result of toString() as the first line followed by one line for each stack trace element that contains the name of the method or constructor, optionally followed by the source file name and source file line number if available.
For JamaicaVM, if printing to the PrintWriter causes another exception, low-level exception printing mechanisms provided by class com.aicas.jamaica.lang.Debug will be used to print the exception to stderr.
printStackTrace in class Throwables - the PrintWriter to write to.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||