public final class ErrorReporter.ReportBuilder extends Object
Constructor and Description |
---|
ErrorReporter.ReportBuilder() |
Modifier and Type | Method and Description |
---|---|
ErrorReporter.ReportBuilder |
customData(Map<String,String> customData)
Sets additional values to be added to
CUSTOM_DATA . |
ErrorReporter.ReportBuilder |
customData(String key,
String value)
Sets an additional value to be added to
CUSTOM_DATA . |
ErrorReporter.ReportBuilder |
endsApplication()
Ends the application after sending the crash report
|
ErrorReporter.ReportBuilder |
exception(Throwable e)
Set the stack trace to be reported
|
ErrorReporter.ReportBuilder |
forceSilent()
Forces the report to be sent silently, ignoring the default interaction mode set in the config
|
ErrorReporter.ReportBuilder |
message(String msg)
Set the error message to be reported.
|
void |
send()
Assembles and sends the crash report
|
public ErrorReporter.ReportBuilder message(String msg)
msg
- the error messageReportBuilder
public ErrorReporter.ReportBuilder exception(Throwable e)
e
- The exception that should be associated with this reportReportBuilder
public ErrorReporter.ReportBuilder customData(Map<String,String> customData)
CUSTOM_DATA
. Values
specified here take precedence over globally specified custom data.customData
- a map of custom key-values to be attached to the reportReportBuilder
public ErrorReporter.ReportBuilder customData(String key, String value)
CUSTOM_DATA
. The value
specified here takes precedence over globally specified custom data.key
- the key identifying the custom datavalue
- the value for the custom data entryReportBuilder
public ErrorReporter.ReportBuilder forceSilent()
ReportBuilder
public ErrorReporter.ReportBuilder endsApplication()
ReportBuilder
public void send()
Copyright © 2010-2015. All Rights Reserved.