BEA Systems, Inc.

com.beasys.commerce.axiom.document.spi
Class DocumentException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.beasys.commerce.axiom.document.spi.DocumentException

public class DocumentException
extends java.lang.Exception

The exception which can be thrown by all SPI level methods.

This can wrap another Throwable.

See Also:
Serialized Form

Field Summary
protected  java.lang.Throwable source
          The source exception.
protected  java.lang.String sourceMesg
          The source exception message.
 
Constructor Summary
DocumentException(java.lang.String msg)
          Constructor.
DocumentException(java.lang.String msg, java.lang.Throwable source)
          Constructor.
 
Method Summary
 java.lang.Throwable getCausingException()
          Get the exception which raised this exception.
 java.lang.String getMessage()
          Override to include the causing exception.
 void printStackTrace()
          Override to also print the stack trace of the causing exception.
 void printStackTrace(java.io.PrintStream out)
          Override to also print the stack trace of the causing exception.
 void printStackTrace(java.io.PrintWriter out)
          Override to also print the stack trace of the causing exception.
 
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

source

protected transient java.lang.Throwable source
The source exception.

sourceMesg

protected java.lang.String sourceMesg
The source exception message.
Constructor Detail

DocumentException

public DocumentException(java.lang.String msg)
Constructor.
Parameters:
msg - the message.

DocumentException

public DocumentException(java.lang.String msg,
                         java.lang.Throwable source)
Constructor.
Parameters:
msg - the message.
source - the causing exception.
Method Detail

getCausingException

public java.lang.Throwable getCausingException()
Get the exception which raised this exception.
Returns:
the exception (can be null if none).

getMessage

public java.lang.String getMessage()
Override to include the causing exception.
Overrides:
getMessage in class java.lang.Throwable

printStackTrace

public void printStackTrace()
Override to also print the stack trace of the causing exception.
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream out)
Override to also print the stack trace of the causing exception.
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter out)
Override to also print the stack trace of the causing exception.
Overrides:
printStackTrace in class java.lang.Throwable

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved