Package org.gradle.tooling
Schnittstelle Failure
- Alle bekannten Unterschnittstellen:
FileComparisonTestAssertionFailure,TestAssertionFailure,TestFailure,TestFrameworkFailure
public interface Failure
Represents a failure. Failures are similar to exceptions but carry less information (only a message, a description and a cause) so
they can be used in a wider scope than just the JVM where the exception failed.
- Seit:
- 2.4
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the underlying causes for this failure, if any.Returns a long description of the failure.Returns a short message (typically one line) for the failure.Returns the problems associated with this failure.
-
Methodendetails
-
getMessage
Returns a short message (typically one line) for the failure.- Gibt zurück:
- the failure message
-
getDescription
Returns a long description of the failure. For example, a stack trace.- Gibt zurück:
- a long description of the failure
-
getCauses
Returns the underlying causes for this failure, if any.- Gibt zurück:
- the causes for this failure. Returns an empty list if this failure has no causes.
-
getProblems
Returns the problems associated with this failure.- Gibt zurück:
- The problems, or an empty list if there are no problems.
- Seit:
- 8.12
-