org.apache.pdfbox.exceptions
Class WrappedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.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.

Overrides:
getMessage in class Throwable
Returns:
A message indicating the exception.

printStackTrace

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

Overrides:
printStackTrace in class Throwable
Parameters:
s - PrintStream to use for output


Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.