Package com.castlabs.analytics
Interface CrashReporter
-
public interface CrashReporter
Implementations of this interface allow connections to crash logging systems. The crash logger typically intercepts uncaught exceptions automatically but allows to specify a more advanced context using the various set methods.- Since:
- 3.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
log(String tag, String message)
Adds a log line to the crash contextvoid
report(Throwable exception)
Report a caught exception.void
set(String key, boolean value)
Sets a boolean valuevoid
set(String key, double value)
Sets a double valuevoid
set(String key, int value)
Sets an int valuevoid
set(String key, String value)
Sets a string value.
-
-
-
Method Detail
-
report
void report(Throwable exception)
Report a caught exception. This is usually used to report non-fatal exception to the backend.- Parameters:
exception
- the exception
-
log
void log(String tag, String message)
Adds a log line to the crash context- Parameters:
tag
- The tagmessage
- The log message
-
set
void set(String key, String value)
Sets a string value. Key value pairs like this should be send when a crash is recorder and will help to debug the issue.- Parameters:
key
- the keyvalue
- the value
-
set
void set(String key, int value)
Sets an int value Key value pairs like this should be send when a crash is recorder and will help to debug the issue.- Parameters:
key
- the keyvalue
- the value
-
set
void set(String key, double value)
Sets a double value Key value pairs like this should be send when a crash is recorder and will help to debug the issue.- Parameters:
key
- the keyvalue
- the value
-
set
void set(String key, boolean value)
Sets a boolean value Key value pairs like this should be send when a crash is recorder and will help to debug the issue.- Parameters:
key
- the keyvalue
- the value
-
-