public interface ErrorReporter
Modifier and Type | Method and Description |
---|---|
void |
clearCustomData()
Removes all key/value pairs from your reports custom data field.
|
String |
getCustomData(String key)
Gets the current value for a key in your reports custom data field.
|
SenderScheduler |
getReportScheduler()
Access point to manual report scheduling
|
void |
handleException(Throwable e)
Send a normal report for the given exception.
|
void |
handleException(Throwable e,
boolean endApplication)
Send a normal report for the given exception
|
void |
handleSilentException(Throwable e)
Send a silent report for the given exception
|
String |
putCustomData(String key,
String value)
Use this method to provide the ErrorReporter with data of your running application.
|
String |
removeCustomData(String key)
Removes a key/value pair from your reports custom data field.
|
void |
setEnabled(boolean enabled)
Enable or disable this ErrorReporter.
|
String putCustomData(@NonNull String key, String value)
key
- A key for your custom data.value
- The value associated to your key.removeCustomData(String)
,
getCustomData(String)
String removeCustomData(@NonNull String key)
key
- The key of the data to be removed.putCustomData(String, String)
,
getCustomData(String)
void clearCustomData()
String getCustomData(@NonNull String key)
key
- The key of the data to be retrieved.putCustomData(String, String)
,
removeCustomData(String)
void handleSilentException(@Nullable Throwable e)
e
- The Throwable
to be reported. If null the report will contain a new Exception("Report requested by developer").void setEnabled(boolean enabled)
enabled
- Whether this ErrorReporter should capture Exceptions and forward them as crash reports.void handleException(@Nullable Throwable e, boolean endApplication)
e
- The Throwable
to be reported. If null the report will contain a new Exception("Report requested by developer").endApplication
- if you want the application to be ended after sending the report.void handleException(@Nullable Throwable e)
e
- The Throwable
to be reported. If null the report will contain a new Exception("Report requested by developer").SenderScheduler getReportScheduler()