public class WarmUpErrors extends java.lang.Object implements java.lang.Iterable<WarmUpErrors.Error>
| Modifier and Type | Class and Description |
|---|---|
static class |
WarmUpErrors.Error
Record of a single error
|
| Constructor and Description |
|---|
WarmUpErrors() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
addError(java.lang.Throwable e,
java.lang.String context)
Add an error and resolve to its cause if needed
|
java.util.Iterator<WarmUpErrors.Error> |
iterator() |
void |
throwIfErrors()
Throw a WarmUpException if there are errors
|
public java.lang.Throwable addError(java.lang.Throwable e,
java.lang.String context)
e - errorcontext - error contextpublic void throwIfErrors()
throws WarmUpException
WarmUpException - if there are errorspublic java.util.Iterator<WarmUpErrors.Error> iterator()
iterator in interface java.lang.Iterable<WarmUpErrors.Error>