Interface Problem
-
Method Summary
Modifier and TypeMethodDescriptionReturns the additional data associated with this problem.Returns the contextual label.Returns additional locations, which can help to understand the problem further.Returns the problem definition.Returns the details string.@Nullable FailureReturns the failure associated with this problem.Returns the locations where the problem originated.Returns the list of solutions.
-
Method Details
-
getDefinition
ProblemDefinition getDefinition()Returns the problem definition.- Returns:
- the definition
- Since:
- 8.12
-
getContextualLabel
ContextualLabel getContextualLabel()Returns the contextual label.- Returns:
- the problem label
- Since:
- 8.12
-
getDetails
-
getOriginLocations
-
getContextualLocations
Returns additional locations, which can help to understand the problem further.For example, if a problem was emitted during task execution, the task path will be available in this list.
Might be empty if there is no meaningful contextual information.
- Returns:
- the locations
- Since:
- 8.13
-
getSolutions
-
getFailure
@Nullable Failure getFailure()Returns the failure associated with this problem.- Returns:
- the failure
- Since:
- 8.12
-
getAdditionalData
AdditionalData getAdditionalData()Returns the additional data associated with this problem. There are 2 possible types for additional data:CustomAdditionalData- custom additional data attached to a problem by usingProblemSpec.additionalData(Class, Action).AdditionalData- additional data attached to the problem.
instanceofcan be used.- Returns:
- the additional data
- Since:
- 8.12
-