ca.sqlpower.wabit
Class CleanupExceptions

java.lang.Object
  extended by ca.sqlpower.wabit.CleanupExceptions

public class CleanupExceptions
extends java.lang.Object

If errors occur during cleanup this object will contain the exceptions and error messages.


Constructor Summary
CleanupExceptions()
           
 
Method Summary
 void add(CleanupExceptions ex)
          Add all of the exceptions and error messages in the given CleanupExceptions to this exception.
 void add(java.lang.Exception e)
          Adds an exception to this set of exceptions that occurred during cleanup.
 void add(java.lang.String message)
          Adds an error message to this set of errors that occurred during cleanup.
 java.util.List<java.lang.String> getErrorMessages()
          Returns an unmodifiable copy of the error messages that occurred during cleanup.
 java.util.List<java.lang.Exception> getExceptions()
          Returns an unmodifiable copy of the exceptions that occurred during cleanup.
 boolean isCleanupSuccessful()
          Returns true if there were no exceptions or error messages during cleanup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CleanupExceptions

public CleanupExceptions()
Method Detail

add

public void add(java.lang.Exception e)
Adds an exception to this set of exceptions that occurred during cleanup.


add

public void add(java.lang.String message)
Adds an error message to this set of errors that occurred during cleanup.


add

public void add(CleanupExceptions ex)
Add all of the exceptions and error messages in the given CleanupExceptions to this exception.


isCleanupSuccessful

public boolean isCleanupSuccessful()
Returns true if there were no exceptions or error messages during cleanup.


getExceptions

public java.util.List<java.lang.Exception> getExceptions()
Returns an unmodifiable copy of the exceptions that occurred during cleanup.


getErrorMessages

public java.util.List<java.lang.String> getErrorMessages()
Returns an unmodifiable copy of the error messages that occurred during cleanup.

Returns:


Copyright © 2009. All Rights Reserved.