Class DefaultAnalysisError
- java.lang.Object
-
- org.sonar.api.batch.sensor.internal.DefaultStorable
-
- org.sonar.api.batch.sensor.error.internal.DefaultAnalysisError
-
- All Implemented Interfaces:
AnalysisError,NewAnalysisError
public class DefaultAnalysisError extends DefaultStorable implements NewAnalysisError, AnalysisError
-
-
Field Summary
-
Fields inherited from class org.sonar.api.batch.sensor.internal.DefaultStorable
storage
-
-
Constructor Summary
Constructors Constructor Description DefaultAnalysisError()DefaultAnalysisError(SensorStorage storage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NewAnalysisErrorat(TextPointer location)Location of this error.protected voiddoSave()InputFileinputFile()The file that was being processed when the error occurred.TextPointerlocation()Location of the error.java.lang.Stringmessage()A description of the error.NewAnalysisErrormessage(java.lang.String message)Message about the error.NewAnalysisErroronFile(InputFile inputFile)The file that was being processed when the error occurred.-
Methods inherited from class org.sonar.api.batch.sensor.internal.DefaultStorable
save, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.sonar.api.batch.sensor.error.NewAnalysisError
save
-
-
-
-
Constructor Detail
-
DefaultAnalysisError
public DefaultAnalysisError()
-
DefaultAnalysisError
public DefaultAnalysisError(SensorStorage storage)
-
-
Method Detail
-
inputFile
public InputFile inputFile()
Description copied from interface:AnalysisErrorThe file that was being processed when the error occurred.- Specified by:
inputFilein interfaceAnalysisError
-
message
public java.lang.String message()
Description copied from interface:AnalysisErrorA description of the error.- Specified by:
messagein interfaceAnalysisError
-
location
public TextPointer location()
Description copied from interface:AnalysisErrorLocation of the error.- Specified by:
locationin interfaceAnalysisError
-
onFile
public NewAnalysisError onFile(InputFile inputFile)
Description copied from interface:NewAnalysisErrorThe file that was being processed when the error occurred. This field must be set before saving the error.- Specified by:
onFilein interfaceNewAnalysisError
-
message
public NewAnalysisError message(java.lang.String message)
Description copied from interface:NewAnalysisErrorMessage about the error. This field is optional.- Specified by:
messagein interfaceNewAnalysisError
-
at
public NewAnalysisError at(TextPointer location)
Description copied from interface:NewAnalysisErrorLocation of this error. This field is optional.- Specified by:
atin interfaceNewAnalysisError
-
doSave
protected void doSave()
- Specified by:
doSavein classDefaultStorable
-
-