Package org.sonar.api.batch.sensor.error
Interface NewAnalysisError
-
- All Known Implementing Classes:
DefaultAnalysisError
public interface NewAnalysisErrorRepresents an analysis error, such as a parsing error, that occurs during the execution of aSensor. Multiple analysis errors might be reported for the same file and issues may be created for a file which also has analysis errors reported. The handling of such situations is unspecified and might vary depending on the implementation.- Since:
- 6.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NewAnalysisErrorat(TextPointer location)Location of this error.NewAnalysisErrormessage(java.lang.String message)Message about the error.NewAnalysisErroronFile(InputFile inputFile)The file that was being processed when the error occurred.voidsave()Save this error information.
-
-
-
Method Detail
-
onFile
NewAnalysisError onFile(InputFile inputFile)
The file that was being processed when the error occurred. This field must be set before saving the error.
-
message
NewAnalysisError message(java.lang.String message)
Message about the error. This field is optional.
-
at
NewAnalysisError at(TextPointer location)
Location of this error. This field is optional.
-
save
void save()
Save this error information.
-
-