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:
java.io.Serializable
Direct Known Subclasses:
JpegProcessingException, MetadataException

public class CompoundException
extends java.lang.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

Constructor Summary
CompoundException(java.lang.String msg)
           
CompoundException(java.lang.String msg, java.lang.Throwable innerException)
           
CompoundException(java.lang.Throwable exception)
           
 
Method Summary
 java.lang.Throwable getInnerException()
           
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream s)
           
 void printStackTrace(java.io.PrintWriter s)
           
 java.lang.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
 

Constructor Detail

CompoundException

public CompoundException(java.lang.String msg)

CompoundException

public CompoundException(java.lang.Throwable exception)

CompoundException

public CompoundException(java.lang.String msg,
                         java.lang.Throwable innerException)
Method Detail

getInnerException

public java.lang.Throwable getInnerException()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class java.lang.Throwable


Copyright © 2006 Drew Noakes. All Rights Reserved.