@Incubating public interface ProblemBuilderSpec
Problem
using a BuildableProblemBuilder
.
Usage example:
throw getProblemService().throwing(builder -> builder.label(message) .undocumented() .noLocation() .type("task_selection") .details("long message") .severity(Severity.ERROR) .withException(new TaskSelectionException(message)));Using this instead of an
Action
forces the user to specify all required properties of a Problem
.Modifier and Type | Method | Description |
---|---|---|
ProblemBuilder |
apply(ProblemBuilderDefiningLabel builder) |
ProblemBuilder apply(ProblemBuilderDefiningLabel builder)