|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--org.apache.batik.xml.XMLException
This class encapsulates a general XML error or warning.
This class can contain basic error or warning information from either the parser or the application.
If the application needs to pass through other types of exceptions, it must wrap those exceptions in a XMLException.
Field Summary | |
protected java.lang.Exception |
exception
|
Constructor Summary | |
XMLException(java.lang.Exception e)
Creates a new XMLException wrapping an existing exception. |
|
XMLException(java.lang.String message)
Creates a new XMLException. |
|
XMLException(java.lang.String message,
java.lang.Exception e)
Creates a new XMLException from an existing exception. |
Method Summary | |
java.lang.Exception |
getException()
Return the embedded exception, if any. |
java.lang.String |
getMessage()
Return a detail message for this exception. |
void |
printStackTrace()
Prints this Exception and its backtrace to the
standard error stream. |
void |
printStackTrace(java.io.PrintStream s)
Prints this Exception and its backtrace to the
specified print stream. |
void |
printStackTrace(java.io.PrintWriter s)
Prints this Exception and its backtrace to the specified
print writer. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.Exception exception
Constructor Detail |
public XMLException(java.lang.String message)
message
- The error or warning message.public XMLException(java.lang.Exception e)
The existing exception will be embedded in the new one, and its message will become the default message for the XMLException.
e
- The exception to be wrapped in a XMLException.public XMLException(java.lang.String message, java.lang.Exception e)
The existing exception will be embedded in the new one, but the new exception will have its own message.
message
- The detail message.e
- The exception to be wrapped in a SAXException.Method Detail |
public java.lang.String getMessage()
If there is a embedded exception, and if the XMLException has no detail message of its own, this method will return the detail message from the embedded exception.
getMessage
in class java.lang.Throwable
public java.lang.Exception getException()
public void printStackTrace()
Exception
and its backtrace to the
standard error stream.printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream s)
Exception
and its backtrace to the
specified print stream.printStackTrace
in class java.lang.Throwable
s
- PrintStream
to use for outputpublic void printStackTrace(java.io.PrintWriter s)
Exception
and its backtrace to the specified
print writer.printStackTrace
in class java.lang.Throwable
s
- PrintWriter
to use for output
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |