public class Collector extends Object
Constructor and Description |
---|
Collector() |
Modifier and Type | Method and Description |
---|---|
void |
addMultiException(MultiException me) |
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
|
public void addMultiException(MultiException me)
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()
Copyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.