Skip to content

Instantly share code, notes, and snippets.

@jobscry
Created November 20, 2012 23:43
Show Gist options
  • Save jobscry/4122052 to your computer and use it in GitHub Desktop.
Save jobscry/4122052 to your computer and use it in GitHub Desktop.
//Status.java
package util;
import java.util.ArrayList;
import java.util.Iterator;
public class Status {
//The list of Exception objects
private ArrayList exceptions;
public Status() {exceptions=new ArrayList();}
public boolean isSuccessful() {return (exceptions.size()==0);}
public void addException(Exception ex) {exceptions.add(ex);}
public Iterator getExceptions() {return exceptions.iterator();}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment