Class DefaultCrashReporter

java.lang.Object
com.codename1.system.DefaultCrashReporter
All Implemented Interfaces:
CrashReport

public final class DefaultCrashReporter extends Object implements CrashReport
A default implementation of the crash reporter that instantly sends the crash data to the server.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Callback for an exception that was not handled by the developer
    static String
    The text for the user prompt dialog
    static String
    The text for the user prompt dialog
    static String
    The text for the user prompt dialog
    static String
    The text for the user prompt dialog
    static void
    init(boolean promptUser, int frequency)
    Installs a crash reporter within the system
    static void
    setCheckboxText(String aCheckboxText)
    The text for the user prompt dialog
    static void
    setDontSendButtonText(String aDontSendButtonText)
    The text for the user prompt dialog
    static void
    setErrorText(String aErrorText)
    The text for the user prompt dialog
    static void
    setSendButtonText(String aSendButtonText)
    The text for the user prompt dialog

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    Modifier and Type
    Method
    Description
    protected Object
     
    boolean
    Indicates whether some other object is "equal to" this one.
    final Class
    Returns the runtime class of an object.
    int
    Returns a hash code value for the object.
    final void
    Wakes up a single thread that is waiting on this object's monitor.
    final void
    Wakes up all threads that are waiting on this object's monitor.
    Returns a string representation of the object.
    final void
    Causes current thread to wait until another thread invokes the method or the method for this object.
    final void
    wait(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 void
    wait(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

      public static String getErrorText()

      The text for the user prompt dialog

      Returns

      the errorText

    • setErrorText

      public static void setErrorText(String aErrorText)

      The text for the user prompt dialog

      Parameters
      • aErrorText: the errorText to set
    • getSendButtonText

      public static String getSendButtonText()

      The text for the user prompt dialog

      Returns

      the sendButtonText

    • setSendButtonText

      public static void setSendButtonText(String aSendButtonText)

      The text for the user prompt dialog

      Parameters
      • aSendButtonText: the sendButtonText to set
    • getDontSendButtonText

      public static String getDontSendButtonText()

      The text for the user prompt dialog

      Returns

      the dontSendButtonText

    • setDontSendButtonText

      public static void setDontSendButtonText(String aDontSendButtonText)

      The text for the user prompt dialog

      Parameters
      • aDontSendButtonText: the dontSendButtonText to set
    • getCheckboxText

      public static String getCheckboxText()

      The text for the user prompt dialog

      Returns

      the checkboxText

    • setCheckboxText

      public static void setCheckboxText(String aCheckboxText)

      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

      public void exception(Throwable t)

      Callback for an exception that was not handled by the developer

      Parameters
      • t: the exception
      Specified by:
      exception in interface CrashReport