org.jaffa.exceptions
Class ApplicationExceptions

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.jaffa.exceptions.ApplicationExceptions
All Implemented Interfaces:
Serializable

public class ApplicationExceptions
extends Exception

This class is generally thrown by the Transaction controllers. It will contain a collection of ApplicationException objects.

See Also:
Serialized Form

Constructor Summary
ApplicationExceptions()
           
 
Method Summary
 boolean add(ApplicationException exception)
          Adds an ApplicationException object to the internal collection.
 void addContext(String context)
          This is a convenience method to wrap each ApplicationException of this ApplicationExceptions object in an ApplicationExceptionWithContext instance, adding the input context.
 ApplicationException[] getApplicationExceptionArray()
          Returns an array of ApplicationException objects.
 Iterator iterator()
          Returns the iterator on the internal collection of ApplicationException objects.
 boolean remove(ApplicationException exception)
          Removes an ApplicationException object from the internal collection.
 int size()
          Returns the number of ApplicationException objects in the internal collection.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationExceptions

public ApplicationExceptions()
Method Detail

size

public int size()
Returns the number of ApplicationException objects in the internal collection.

Returns:
the number of ApplicationException objects in the internal collection.

iterator

public Iterator iterator()
Returns the iterator on the internal collection of ApplicationException objects.

Returns:
the iterator on the internal collection of ApplicationException objects.

add

public boolean add(ApplicationException exception)
Adds an ApplicationException object to the internal collection.

Parameters:
exception - the ApplicationException.
Returns:
a true if the internal collection changed as a result of the call.

remove

public boolean remove(ApplicationException exception)
Removes an ApplicationException object from the internal collection.

Parameters:
exception - the ApplicationException.
Returns:
a true if the internal collection changed as a result of the call.

getApplicationExceptionArray

public ApplicationException[] getApplicationExceptionArray()
Returns an array of ApplicationException objects.

Returns:
an array of ApplicationException objects.

addContext

public void addContext(String context)
This is a convenience method to wrap each ApplicationException of this ApplicationExceptions object in an ApplicationExceptionWithContext instance, adding the input context.

Parameters:
context - The context under which the exception was raised. A null value is not permitted.


Copyright © 2002-2004 JAFFA Project.