gradle
8.4

# Problems

@Incubating
interface Problems(source)

Problems API service.

The main purpose of this API is to allow clients to create configure and report problems in a centralized way.

Reported problems are exposed via build operation progress events, which then be converted to Tooling API progress events.

## Functions

createProblemBuilder
Link copied to clipboard
abstract fun createProblemBuilder(): ProblemBuilderDefiningLabel
Returns a new problem builder which can configure and create Problem instances.
rethrowing
Link copied to clipboard
abstract fun rethrowing(e: RuntimeException, action: ProblemBuilderSpec): RuntimeException
Configures a new problem with error severity using an existing exception as input, reports it and uses it to throw a new exception.
throwing
Link copied to clipboard
abstract fun throwing(action: ProblemBuilderSpec): RuntimeException
Configures a new problem with error severity, reports it and uses it to throw a new exception.