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 Summary
Modifier and TypeMethodDescriptionReturns additional locations, which can help to understand the problem further.@Nullable Details
Returns the details string.@Nullable Failure
Returns the failure associated with this problem.Returns the locations where the problem originated.Returns the list of solutions.
-
Method Details
-
getDetails
@Nullable Details getDetails()Returns the details string.- Returns:
- the problem details
- Since:
- 8.8
-
getOriginLocations
Returns the locations where the problem originated.Might be empty if the origin is not known.
- Returns:
- the origin locations
- Since:
- 8.12
-
getContextualLocations
Returns additional locations, which can help to understand the problem further.Might be empty if there is no meaningful contextual information.
- Returns:
- the contextual locations
- Since:
- 8.12
-
getSolutions
Returns the list of solutions.- Returns:
- the solutions
- Since:
- 8.8
-
getFailure
@Nullable Failure 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
-