org.apache.directory.shared.ldap
Class RuntimeMultiException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.apache.directory.shared.ldap.RuntimeMultiException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MessageException

public class RuntimeMultiException
extends java.lang.RuntimeException

This exception is thrown when Base class for nested exceptions.

Version:
$Revision: 379008 $
Author:
Alex Karasulu, $Author: akarasulu $
See Also:
Serialized Form

Constructor Summary
RuntimeMultiException()
          Constructs an Exception without a message.
RuntimeMultiException(java.lang.String a_message)
          Constructs an Exception with a detailed message.
 
Method Summary
 void addThrowable(java.lang.Throwable a_nested)
          Add an exeception to this multiexception.
 boolean isEmpty()
          Tests to see if exceptions are nested within this exception.
 java.util.Iterator listNestedExceptions()
          Lists the nested exceptions that this Exception encapsulates.
 void printStackTrace()
          Beside printing out the standard stack trace this method prints out the stack traces of all the nested exceptions using standard error.
 void printStackTrace(java.io.PrintStream an_out)
          Beside printing out the standard stack trace this method prints out the stack traces of all the nested exceptions.
 void printStackTrace(java.io.PrintWriter an_out)
          Beside printing out the standard stack trace this method prints out the stack traces of all the nested exceptions.
 int size()
          Gets the size (number of) exceptions nested within this exception.
 
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

RuntimeMultiException

public RuntimeMultiException()
Constructs an Exception without a message.


RuntimeMultiException

public RuntimeMultiException(java.lang.String a_message)
Constructs an Exception with a detailed message.

Parameters:
a_message - The message associated with the exception.
Method Detail

listNestedExceptions

public java.util.Iterator listNestedExceptions()
Lists the nested exceptions that this Exception encapsulates.

Returns:
an Iterator over the nested exceptions.

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

public void addThrowable(java.lang.Throwable a_nested)
Add an exeception to this multiexception.

Parameters:
a_nested - exception to add to this MultiException.

printStackTrace

public void printStackTrace(java.io.PrintWriter an_out)
Beside printing out the standard stack trace this method prints out the stack traces of all the nested exceptions.

Parameters:
an_out - PrintWriter to write the nested stack trace to.

printStackTrace

public void printStackTrace(java.io.PrintStream an_out)
Beside printing out the standard stack trace this method prints out the stack traces of all the nested exceptions.

Parameters:
an_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.



Copyright © 2003-2006 . All Rights Reserved.