Package aQute.service.reporter
Interface Reporter.SetLocation
-
- All Known Subinterfaces:
Messages.ERROR
,Messages.WARNING
- Enclosing interface:
- Reporter
public static interface Reporter.SetLocation
Fluid interface to set location data
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Reporter.SetLocation
context(java.lang.String context)
Set the context in the header.Reporter.SetLocation
details(java.lang.Object details)
Pass a DTO containing detailed information about the error.Reporter.SetLocation
file(java.lang.String file)
Set the file locationReporter.SetLocation
header(java.lang.String header)
Set the header/section location.Reporter.SetLocation
length(int length)
Reporter.SetLocation
line(int n)
Set the line number.Report.Location
location()
Reporter.SetLocation
method(java.lang.String methodName)
Set the method where the error is reported.Reporter.SetLocation
reference(java.lang.String reference)
Set a reference for the error (url or so)
-
-
-
Method Detail
-
file
Reporter.SetLocation file(java.lang.String file)
Set the file location
-
header
Reporter.SetLocation header(java.lang.String header)
Set the header/section location. This is normally the header in a manifest or properties file.
-
context
Reporter.SetLocation context(java.lang.String context)
Set the context in the header.- Parameters:
context
-
-
method
Reporter.SetLocation method(java.lang.String methodName)
Set the method where the error is reported.- Parameters:
methodName
-
-
line
Reporter.SetLocation line(int n)
Set the line number. Line 0 is the top line.
-
reference
Reporter.SetLocation reference(java.lang.String reference)
Set a reference for the error (url or so)
-
details
Reporter.SetLocation details(java.lang.Object 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
Reporter.SetLocation length(int length)
-
-