Package org.gradle.api.problems
Interface ProblemSpec
Provides options to configure problems.
- Since:
- 8.6
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncontextualLabel(String contextualLabel) Declares a short, but context-dependent message for this problem.The long description of this problem.documentedAt(String url) Declares where this problem is documented.fileLocation(String path) Declares that this problem is in a file.lineInFileLocation(String path, int line) Declares that this problem is in a file on a line.lineInFileLocation(String path, int line, int column) Declares that this problem is in a file with on a line at a certain position.lineInFileLocation(String path, int line, int column, int length) Declares that this problem is in a file with on a line at a certain position.offsetInFileLocation(String path, int offset, int length) Declares that this problem is in a file at a certain global position with a given length.Declares the severity of the problem.A description of how to solve this problem.Declares that this problem should automatically collect the location information based on the current stack trace.The exception causing this problem.
-
Method Details
-
contextualLabel
Declares a short, but context-dependent message for this problem.- Parameters:
contextualLabel- the short message- Returns:
- this
- Since:
- 8.8
-
documentedAt
Declares where this problem is documented.- Returns:
- this
- Since:
- 8.6
-
fileLocation
Declares that this problem is in a file.- Parameters:
path- the file location- Returns:
- this
- Since:
- 8.6
-
lineInFileLocation
Declares that this problem is in a file on a line.- Parameters:
path- the file locationline- the one-indexed line number- Returns:
- this
- Since:
- 8.6
-
lineInFileLocation
Declares that this problem is in a file with on a line at a certain position.- Parameters:
path- the file locationline- the one-indexed line numbercolumn- the one-indexed column- Returns:
- this
- Since:
- 8.6
-
lineInFileLocation
Declares that this problem is in a file with on a line at a certain position.- Parameters:
path- the file locationline- the one-indexed line numbercolumn- the one-indexed columnlength- the length of the text- Returns:
- this
- Since:
- 8.6
-
offsetInFileLocation
Declares that this problem is in a file at a certain global position with a given length.- Parameters:
path- the file locationoffset- the zero-indexed global offset from the beginning of the filelength- the length of the text- Returns:
- this
- Since:
- 8.6
-
stackLocation
ProblemSpec stackLocation()Declares that this problem should automatically collect the location information based on the current stack trace.- Returns:
- this
- Since:
- 8.6
-
details
The long description of this problem.- Parameters:
details- the details- Returns:
- this
- Since:
- 8.6
-
solution
A description of how to solve this problem.- Parameters:
solution- the solution.- Returns:
- this
- Since:
- 8.6
-
withException
The exception causing this problem.- Parameters:
t- the exception.- Returns:
- this
- Since:
- 8.11
-
severity
Declares the severity of the problem.- Parameters:
severity- the severity- Returns:
- this
- Since:
- 8.6
-