org.apache.karaf.shell.console
Class MultiException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.karaf.shell.console.MultiException
All Implemented Interfaces:
Serializable

public class MultiException
extends Exception

See Also:
Serialized Form

Constructor Summary
MultiException(String message)
           
MultiException(String message, List<Exception> exceptions)
           
 
Method Summary
 void addException(Exception e)
           
 Throwable[] getCauses()
           
 void printStackTrace()
           
 void printStackTrace(PrintStream out)
           
 void printStackTrace(PrintWriter out)
           
static void throwIf(String message, List<Exception> exceptions)
           
 void throwIfExceptions()
           
 
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
 

Constructor Detail

MultiException

public MultiException(String message)

MultiException

public MultiException(String message,
                      List<Exception> exceptions)
Method Detail

addException

public void addException(Exception e)

throwIfExceptions

public void throwIfExceptions()
                       throws MultiException
Throws:
MultiException

getCauses

public Throwable[] getCauses()

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

throwIf

public static void throwIf(String message,
                           List<Exception> exceptions)
                    throws MultiException
Throws:
MultiException


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.