@Incubating public interface ProblemReporter
Modifier and Type | Method | Description |
---|---|---|
void |
reporting(Action<ProblemSpec> spec) |
Configures and reports a new problem.
|
java.lang.RuntimeException |
rethrowing(java.lang.RuntimeException e,
Action<ProblemSpec> spec) |
Configures a new problem using an existing exception as input, reports it, and uses it to throw a new exception.
|
java.lang.RuntimeException |
throwing(Action<ProblemSpec> spec) |
Configures a new problem, reports it, and uses it to throw a new exception.
|
void reporting(Action<ProblemSpec> spec)
The spec must specify the problem label and the category. Any additional configuration is optional.
spec
- the problem configurationjava.lang.RuntimeException throwing(Action<ProblemSpec> spec)
An exception must be provided in the spec.
The spec must specify the exception, the problem label, and the category. Any additional configuration is optional.
java.lang.RuntimeException rethrowing(java.lang.RuntimeException e, Action<ProblemSpec> spec)
The spec must specify the problem label and the category. Any additional configuration is optional.