gradle
8.5

# ProblemBuilder

@Incubating
interface ProblemBuilder(source)

Problem instance configurator 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>.report(configurator -> configurator
             .label("test problem")
             .undocumented()
             .noLocation()
             .cotegory("problemCategory")
             .severity(Severity.ERROR)
             .details("this is a test")

Content copied to clipboard

#### Inheritors

BuildableProblemBuilder

## Functions

additionalData
Link copied to clipboard
abstract fun additionalData(key: String, value: String): ProblemBuilder
Specifies arbitrary data associated with this problem.
details
Link copied to clipboard
abstract fun details(details: String): ProblemBuilder
The long description of this problem.
severity
Link copied to clipboard
abstract fun severity(severity: Severity): ProblemBuilder
Declares the severity of the problem.
solution
Link copied to clipboard
abstract fun solution(solution: String): ProblemBuilder
The description of how to solve this problem
withException
Link copied to clipboard
abstract fun withException(e: RuntimeException): ProblemBuilder
The exception causing this problem.