ProblemBuilder

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")
 

Inheritors

Functions

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