Package org.gradle.api.problems

## Interface ProblemBuilderSpec

-     @Incubating
      public interface ProblemBuilderSpec

  A function that can be used to specify a `Problem` using a `ProblemBuilder`.

  Usage example:

       throw getProblemService().throwing(builder ->
              builder.label(message)
                  .undocumented()
                  .noLocation()
                  .type("task_selection")
                  .group(ProblemGroup.GENERIC_ID)
                  .details("long message")
                  .severity(Severity.ERROR)
                  .withException(new TaskSelectionException(message)));

  Using this instead of an `Action` forces the user to specify all required properties of a `Problem`.
  Since:
    8.4

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `ProblemBuilder` | `apply​(ProblemBuilderDefiningLabel builder)` |

- - ### Method Detail

    - #### apply

          ProblemBuilder apply​(ProblemBuilderDefiningLabel builder)