org.openqa.jetty.util
Class MultiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.openqa.jetty.util.MultiException
- All Implemented Interfaces:
- Serializable
public class MultiException
- extends Exception
Wraps multiple exceptions.
Allows multiple exceptions to be thrown as a single exception.
- Version:
- $Id: MultiException.java,v 1.10 2004/05/09 20:32:49 gregwilkins Exp $
- Author:
- Greg Wilkins (gregw)
- See Also:
- Serialized Form
MultiException
public MultiException()
add
public void add(Exception e)
size
public int size()
getExceptions
public List getExceptions()
getException
public Exception getException(int i)
ifExceptionThrow
public void ifExceptionThrow()
throws 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:
Exception
ifExceptionThrowMulti
public void ifExceptionThrowMulti()
throws MultiException
- Throw a multiexception.
If this multi exception is empty then no action is taken. If it
contains a any exceptions then this
multi exception is thrown.
- Throws:
MultiException
toString
public String toString()
- Overrides:
toString
in class Throwable
printStackTrace
public void printStackTrace()
- Overrides:
printStackTrace
in class Throwable
printStackTrace
public void printStackTrace(PrintStream out)
- Overrides:
printStackTrace
in class Throwable
- See Also:
Throwable.printStackTrace(java.io.PrintStream)
printStackTrace
public void printStackTrace(PrintWriter out)
- Overrides:
printStackTrace
in class Throwable
- See Also:
Throwable.printStackTrace(java.io.PrintWriter)
Copyright © 2012. All Rights Reserved.