public static class Report.ReportBuilder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Report |
build()
Construct a new report with the provided input.
|
Report.ReportBuilder |
callerParam(java.lang.Object... callerParameters)
Set the parameters in the caller method.
|
Report.ReportBuilder |
error(java.lang.Throwable exception)
Set the current exception that occured.
|
Report.ReportBuilder |
messageParam(java.lang.Object... messageParameters)
Set the message parameters that are used to construct a message text.
|
Report.ReportBuilder |
type(ReportType type)
Set the current report type.
|
public Report.ReportBuilder type(ReportType type)
type
- - report type.public Report.ReportBuilder error(@Nullable java.lang.Throwable exception)
exception
- - exception that occured.public Report.ReportBuilder messageParam(@Nullable java.lang.Object... messageParameters)
messageParameters
- - parameters for the report type.public Report.ReportBuilder callerParam(@Nullable java.lang.Object... callerParameters)
callerParameters
- - parameters of the caller method.public Report build()