org.pdfbox.exceptions
Class WrappedException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.pdfbox.exceptions.WrappedException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
COSVisitorException

public class WrappedException
extends Exception

An exception that that holds a sub exception.

Version:
$Revision: 1.2 $
Author:
Ben Litchfield
See Also:
Serialized Form

Constructor Summary
WrappedException(Exception e)
          constructor comment.
 
Method Summary
 String getMessage()
          Gets the wrapped exception message.
 void printStackTrace(PrintStream s)
          Prints this throwable and its backtrace to the specified print stream.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WrappedException

public WrappedException(Exception e)
constructor comment.

Parameters:
e - The root exception that caused this exception.
Method Detail

getMessage

public String getMessage()
Gets the wrapped exception message.

Returns:
A message indicating the exception.

printStackTrace

public void printStackTrace(PrintStream s)
Prints this throwable and its backtrace to the specified print stream.

Parameters:
s - PrintStream to use for output