DocumentException Class

DEPRECATED

com.bea.p13n.content.document.spi
DocumentException Class

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

Field Summary

protected transient Throwable
source
The source exception.
protected String
sourceMesg
The source exception message.
 

Constructor Summary

DocumentException(String msg, Throwable source)

Constructor.
DocumentException(String msg)

Constructor.
 

Method Summary

public Throwable
getCausingException()
Get the exception which raised this exception.
public String
getMessage()
Override to include the causing exception.
public void
printStackTrace()
Override to also print the stack trace of the causing exception.
public void
printStackTrace(PrintStream out)
Override to also print the stack trace of the causing exception.
public void
printStackTrace(PrintWriter out)
Override to also print the stack trace of the causing exception.
 
Methods from  java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   

Field Detail

source

protected transient Throwable source
The source exception.


sourceMesg

protected String sourceMesg
The source exception message.

 

Constructor Detail

DocumentException

public DocumentException(String msg, 
                         Throwable source)
Constructor.

DocumentException

public DocumentException(String msg)
Constructor.
 

Method Detail

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)