public class Collector extends Object
| Constructor and Description |
|---|
Collector() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMultiException(MultiException me)
Merges
MultiException with all throwables registered in it. |
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)
MultiException with all throwables registered in it.me - MultiException to merge.public void addThrowable(Throwable th)
th - The throwable to add to the list.public void throwIfErrors()
throws MultiException
MultiException - An exception with all the throwables found in this collector.public boolean hasErrors()
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.