|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.hk2.internal.Collector
public class Collector
This class collects errors, and can then also produce a MultiException from those errors if necessary
Constructor Summary | |
---|---|
Collector()
|
Method Summary | |
---|---|
void |
addThrowable(Throwable th)
Adds a throwable to the list of throwables in this collector |
boolean |
hasErrors()
Returns true if this collector has errors |
void |
throwIfErrors()
This method will throw if the list of throwables associated with this collector is not empty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Collector()
Method Detail |
---|
public void addThrowable(Throwable th)
th
- The throwable to add to the listpublic void throwIfErrors() throws MultiException
MultiException
- An exception with all the throwables found in this collectorpublic boolean hasErrors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |