Package 

Interface ErrorReporter


  • 
    public interface ErrorReporter
    
                        

    This interface contains methods used to interact with ACRA after it has been initialized

    • Method Detail

      • putCustomData

         abstract String putCustomData(String key, String value)

        Use this method to provide the ErrorReporter with data of your running application. You should call this at several key places in your code the same way as you would output important debug data in a log file. Only the latest value is kept for each key (no history of the values is sent in the report).

        Parameters:
        key - A key for your custom data.
        value - The value associated to your key.
      • removeCustomData

         abstract String removeCustomData(String key)

        Removes a key/value pair from your reports custom data field.

        Parameters:
        key - The key of the data to be removed.
      • clearCustomData

         abstract Unit clearCustomData()

        Removes all key/value pairs from your reports custom data field.

      • getCustomData

         abstract String getCustomData(String key)

        Gets the current value for a key in your reports custom data field.

        Parameters:
        key - The key of the data to be retrieved.
      • setEnabled

         abstract Unit setEnabled(Boolean enabled)

        Enable or disable this ErrorReporter. By default it is enabled.

        Parameters:
        enabled - Whether this ErrorReporter should capture Exceptions and forward them as crash reports.
      • handleException

         abstract Unit handleException(Throwable e, Boolean endApplication)

        Send a normal report for the given exception

        Parameters:
        e - The Throwable to be reported.
        endApplication - if you want the application to be ended after sending the report.