Class RuntimeMultiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.directory.api.util.exception.RuntimeMultiException
- All Implemented Interfaces:
Serializable
This exception is thrown when Base class for nested exceptions.
- Author:
- Apache Directory Project
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an Exception without a message.RuntimeMultiException(String message) Constructs an Exception with a detailed message.RuntimeMultiException(String message, Throwable t) Constructs an Exception with a detailed message. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddThrowable(Throwable nested) Add an exeception to this multiexception.booleanisEmpty()Tests to see if exceptions are nested within this exception.Lists the nested exceptions that this Exception encapsulates.voidBeside printing out the standard stack trace this method prints out the stack traces of all the nested exceptions using standard error.voidBeside printing out the standard stack trace this method prints out the stack traces of all the nested exceptions.voidBeside printing out the standard stack trace this method prints out the stack traces of all the nested exceptions.intsize()Gets the size (number of) exceptions nested within this exception.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Constructor Details
-
RuntimeMultiException
public RuntimeMultiException()Constructs an Exception without a message. -
RuntimeMultiException
Constructs an Exception with a detailed message.- Parameters:
message- The message associated with the exception.
-
RuntimeMultiException
-
-
Method Details
-
listNestedExceptions
-
size
public int size()Gets the size (number of) exceptions nested within this exception.- Returns:
- the size of this nested exception.
-
isEmpty
public boolean isEmpty()Tests to see if exceptions are nested within this exception.- Returns:
- true if an exception is nested, false otherwise
-
addThrowable
Add an exeception to this multiexception.- Parameters:
nested- exception to add to this MultiException.
-
printStackTrace
Beside printing out the standard stack trace this method prints out the stack traces of all the nested exceptions.- Overrides:
printStackTracein classThrowable- Parameters:
out- PrintWriter to write the nested stack trace to.
-
printStackTrace
Beside printing out the standard stack trace this method prints out the stack traces of all the nested exceptions.- Overrides:
printStackTracein classThrowable- Parameters:
out- PrintStream to write the nested stack trace to.
-
printStackTrace
public void printStackTrace()Beside printing out the standard stack trace this method prints out the stack traces of all the nested exceptions using standard error.- Overrides:
printStackTracein classThrowable
-