java.lang.Object
org.jvnet.hk2.internal.Collector
This class collects errors, and can then also produce a MultiException
from those errors if necessary
- Author:
- jwells
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMultiException(org.glassfish.hk2.api.MultiException me) voidAdds a throwable to the list of throwables in this collectorbooleanReturns true if this collector has errorsvoidThis method will throw if the list of throwables associated with this collector is not empty
-
Constructor Details
-
Collector
public Collector()
-
-
Method Details
-
addMultiException
public void addMultiException(org.glassfish.hk2.api.MultiException me) -
addThrowable
Adds a throwable to the list of throwables in this collector- Parameters:
th- The throwable to add to the list
-
throwIfErrors
public void throwIfErrors() throws org.glassfish.hk2.api.MultiExceptionThis method will throw if the list of throwables associated with this collector is not empty- Throws:
org.glassfish.hk2.api.MultiException- An exception with all the throwables found in this collector
-
hasErrors
public boolean hasErrors()Returns true if this collector has errors- Returns:
- true if the collector has errors
-