Package aQute.service.reporter
Interface Reporter.SetLocation
- All Known Subinterfaces:
Messages.ERROR
,Messages.WARNING
- All Known Implementing Classes:
Processor.SetLocationImpl
,ReporterAdapter.LocationImpl
,ReporterMessages.ERRORImpl
,ReporterMessages.WARNINGImpl
- Enclosing interface:
- Reporter
public static interface Reporter.SetLocation
Fluid interface to set location data
-
Method Summary
Modifier and TypeMethodDescriptionSet the context in the header.Pass a DTO containing detailed information about the error.Set the file locationSet the header/section location.length
(int length) line
(int n) Set the line number.location()
Set the method where the error is reported.Set a reference for the error (url or so)
-
Method Details
-
file
Set the file location -
header
Set the header/section location. This is normally the header in a manifest or properties file. -
context
Set the context in the header.- Parameters:
context
-
-
method
Set the method where the error is reported.- Parameters:
methodName
-
-
line
Set the line number. Line 0 is the top line. -
reference
Set a reference for the error (url or so) -
details
Pass a DTO containing detailed information about the error. This can be recognised by other tools (e.g. bndtools) and used for further error reporting/fixing. -
location
Report.Location location() -
length
-