Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2002 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

    java.lang.Object
      |
      +--java.lang.Throwable
            |
            +--java.lang.Exception
                  |
                  +--com.bea.p13n.content.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

Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2002 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002 BEA Systems, Inc. All Rights Reserved