org.xfp
Class MultiException
java.lang.Object
  
java.lang.Throwable
      
java.lang.Exception
          
org.xfp.MultiException
- All Implemented Interfaces: 
 - java.io.Serializable
 
- public class MultiException
- extends java.lang.Exception
  
Wraps multiple exceptions.
 Allows multiple exceptions to be thrown as a single exception.
 Extracted and readapted from Jetty.
 Id: MultiException.java,v 1.8 2003/04/26 11:46:44 gregwilkins Exp
- Version:
 
  - $Id: MultiException.java,v 1.1 2004/03/19 15:56:42 flaviotordini Exp $
 
- Author:
 
  - Greg Wilkins (gregw), Flavio Tordini
 
- See Also:
 - Serialized Form
 
 
 
| Methods inherited from class java.lang.Throwable | 
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
MultiException
public MultiException(java.lang.String message)
add
public void add(java.lang.Exception e)
 
size
public int size()
 
ifExceptionThrow
public void ifExceptionThrow()
                      throws java.lang.Exception
- Throw a multiexception.
 If this multi exception is empty then no action is taken. If it
 contains a single exception that is thrown, otherwise the this
 multi exception is thrown.
- Throws:
 java.lang.Exception
 
 
ifExceptionThrowMulti
public void ifExceptionThrowMulti()
                           throws MultiException
- Throw a multiexception.
 If this multi exception is empty then no action is taken. If it
 contains any exceptions then this
 multi exception is thrown.
- Throws:
 MultiException
 
 
printStackTrace
public void printStackTrace()
- Prints the stack trace of this exception plus all the contained exceptions.
 This works only if called directly.
 When the 
printStackTrace method is called on a caused (parent) exception,
 multiple stack traces will not be printed.
- See Also:
 Throwable.printStackTrace()
 
 
printStackTrace
public void printStackTrace(java.io.PrintStream s)
- See Also:
 printStackTrace(), 
Throwable.printStackTrace(PrintStream)
 
printStackTrace
public void printStackTrace(java.io.PrintWriter s)
- See Also:
 printStackTrace(), 
Throwable.printStackTrace(PrintWriter)
 
Copyright © 2003-2004 XFP Team. All Rights Reserved.