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 NewAnalysisError
at(TextPointer location)
Location of this error.protected void
doSave()
InputFile
inputFile()
The file that was being processed when the error occurred.TextPointer
location()
Location of the error.java.lang.String
message()
A description of the error.NewAnalysisError
message(java.lang.String message)
Message about the error.NewAnalysisError
onFile(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:AnalysisError
The file that was being processed when the error occurred.- Specified by:
inputFile
in interfaceAnalysisError
-
message
public java.lang.String message()
Description copied from interface:AnalysisError
A description of the error.- Specified by:
message
in interfaceAnalysisError
-
location
public TextPointer location()
Description copied from interface:AnalysisError
Location of the error.- Specified by:
location
in interfaceAnalysisError
-
onFile
public NewAnalysisError onFile(InputFile inputFile)
Description copied from interface:NewAnalysisError
The file that was being processed when the error occurred. This field must be set before saving the error.- Specified by:
onFile
in interfaceNewAnalysisError
-
message
public NewAnalysisError message(java.lang.String message)
Description copied from interface:NewAnalysisError
Message about the error. This field is optional.- Specified by:
message
in interfaceNewAnalysisError
-
at
public NewAnalysisError at(TextPointer location)
Description copied from interface:NewAnalysisError
Location of this error. This field is optional.- Specified by:
at
in interfaceNewAnalysisError
-
doSave
protected void doSave()
- Specified by:
doSave
in classDefaultStorable
-
-