ProblemBuilder@Incubating public interface BuildableProblemBuilder extends ProblemBuilder
Problem instance builder allowing the specification of all optional fields.
This is the last interface in the builder chain. The order of steps can be traced from the Problems service interface.
An example of how to use the builder:
<problemService>.createProblemBuilder()
.label("test problem")
.undocumented()
.noLocation()
.cotegory("problemCategory")
.severity(Severity.ERROR)
.details("this is a test")
| Modifier and Type | Method | Description |
|---|---|---|
ReportableProblem |
build() |
Creates the new problem.
|
additionalData, details, severity, solution, withExceptionReportableProblem build()
build() won't report the problem via build operations, it can be done separately by calling ReportableProblem.report().