Interface ProblemContext


  • @Incubating
    public interface ProblemContext
    Describes a problem event.

    Provides all details provided for problem events. The events are generated via the Problems API.

    Since:
    8.8
    • Method Detail

      • getDetails

        @Nullable
        Details getDetails()
        Returns the details string.
        Returns:
        the problem details
        Since:
        8.8
      • getLocations

        java.util.List<Location> getLocations()
        Returns the locations associated with this problem.
        Returns:
        the locations
        Since:
        8.8
      • getSolutions

        java.util.List<Solution> getSolutions()
        Returns the list of solutions.
        Returns:
        the solutions
        Since:
        8.8
      • getFailure

        @Nullable
        FailureContainer getFailure()
        Returns the failure associated with this problem.
        null if run against a Gradle version prior to 8.7
        Returns:
        the failure
        Since:
        8.8