Class DefaultCrashReporter
java.lang.Object
com.codename1.system.DefaultCrashReporter
- All Implemented Interfaces:
CrashReport
A default implementation of the crash reporter that instantly sends the crash
data to the server.
-
Method Summary
Modifier and TypeMethodDescriptionvoidCallback for an exception that was not handled by the developerstatic StringThe text for the user prompt dialogstatic StringThe text for the user prompt dialogstatic StringThe text for the user prompt dialogstatic StringThe text for the user prompt dialogstatic voidinit(boolean promptUser, int frequency) Installs a crash reporter within the systemstatic voidsetCheckboxText(String aCheckboxText) The text for the user prompt dialogstatic voidsetDontSendButtonText(String aDontSendButtonText) The text for the user prompt dialogstatic voidsetErrorText(String aErrorText) The text for the user prompt dialogstatic voidsetSendButtonText(String aSendButtonText) The text for the user prompt dialog
-
Method Details
-
getErrorText
The text for the user prompt dialog
Returns
the errorText
-
setErrorText
The text for the user prompt dialog
Parameters
aErrorText: the errorText to set
-
getSendButtonText
The text for the user prompt dialog
Returns
the sendButtonText
-
setSendButtonText
The text for the user prompt dialog
Parameters
aSendButtonText: the sendButtonText to set
-
getDontSendButtonText
The text for the user prompt dialog
Returns
the dontSendButtonText
-
setDontSendButtonText
The text for the user prompt dialog
Parameters
aDontSendButtonText: the dontSendButtonText to set
-
getCheckboxText
The text for the user prompt dialog
Returns
the checkboxText
-
setCheckboxText
The text for the user prompt dialog
Parameters
aCheckboxText: the checkboxText to set
-
init
public static void init(boolean promptUser, int frequency) Installs a crash reporter within the system
Parameters
-
promptUser: indicates whether the user should be prompted on crash reporting -
frequency: @param frequency the frequency with which we send the log to the server in debug mode in minutes frequency must be at least 1. Any lower level automatically disables this feature
-
-
exception
Callback for an exception that was not handled by the developer
Parameters
t: the exception
- Specified by:
exceptionin interfaceCrashReport
-