gradle
8.5

# 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

create
Link copied to clipboard
abstract fun create(action: ProblemBuilderSpec): ReportableProblem
Configures a new problem.
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.