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 dialogMethods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
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
-