DocumentException Class
DEPRECATED
- public class DocumentException
extends Exception
The exception which can be thrown by all SPI level methods.
This can wrap another Throwable.
-
Hierarchy
-
Object
Throwable
Exception
DocumentException
-
All Implemented Interfaces
-
Serializable
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
source
protected transient Throwable source
- The source exception.
sourceMesg
protected String sourceMesg
- The source exception message.
DocumentException
public DocumentException(String msg,
Throwable source)
- Constructor.
DocumentException
public DocumentException(String msg)
- Constructor.
getCausingException() Method
public Throwable getCausingException()
Get the exception which raised this exception.
Returns
- the exception (can be null if none).
getMessage() Method
public String getMessage()
Override to include the causing exception.
-
Overrides
-
Throwable.getMessage()
printStackTrace() Method
public void printStackTrace()
Override to also print the stack trace of the causing exception.
-
Overrides
-
Throwable.printStackTrace()
printStackTrace(PrintStream) Method
public void printStackTrace(PrintStream out)
Override to also print the stack trace of the causing exception.
-
Overrides
-
Throwable.printStackTrace(PrintStream)
printStackTrace(PrintWriter) Method
public void printStackTrace(PrintWriter out)
Override to also print the stack trace of the causing exception.
-
Overrides
-
Throwable.printStackTrace(PrintWriter)