com.drew.lang
Class CompoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.drew.lang.CompoundException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ImageProcessingException, MetadataException

public class CompoundException
extends Exception

Represents a compound exception, as modelled in JDK 1.4, but unavailable in previous versions. This class allows support of these previous JDK versions.

See Also:
Serialized Form

Field Summary
private  Throwable _innnerException
           
 
Constructor Summary
CompoundException(String msg)
           
CompoundException(String msg, Throwable innerException)
           
CompoundException(Throwable exception)
           
 
Method Summary
 Throwable getInnerException()
           
 void printStackTrace()
           
 void printStackTrace(PrintStream s)
           
 void printStackTrace(PrintWriter s)
           
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_innnerException

private final Throwable _innnerException
Constructor Detail

CompoundException

public CompoundException(String msg)

CompoundException

public CompoundException(Throwable exception)

CompoundException

public CompoundException(String msg,
                         Throwable innerException)
Method Detail

getInnerException

public Throwable getInnerException()

toString

public String toString()
Overrides:
toString in class Throwable

printStackTrace

public void printStackTrace(PrintStream s)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter s)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class Throwable