public interface CrashRecoverBehaviour
Basic process like persisting the crash data and killing the process will be done within the framework and configured with this interface.
Use the pre and post handler to easily modify ready to use implementations.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
CrashRecoverBehaviour.CrashAction
A crash action used with
getPreCrashAction() and getPostCrashAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
callDefaultExceptionHandler()
If the default exception handler should be called.
|
CrashRecoverBehaviour.CrashAction |
getPostCrashAction()
Set an action before the
handleCrash(Context, Thread, Throwable, CrashData, PlanBConfig) |
CrashRecoverBehaviour.CrashAction |
getPreCrashAction()
Set an action before the
handleCrash(Context, Thread, Throwable, CrashData, PlanBConfig) |
void |
handleCrash(android.content.Context context,
java.lang.Thread thread,
java.lang.Throwable throwable,
CrashData crashData,
PlanBConfig config)
The main crash handle call.
|
boolean |
killProcess()
If the process should be killed after handling the crash.
|
boolean |
persistCrashData()
If the crash data should be persisted with the
CrashDataHandler |
boolean killProcess()
boolean callDefaultExceptionHandler()
boolean persistCrashData()
CrashDataHandlervoid handleCrash(android.content.Context context,
java.lang.Thread thread,
java.lang.Throwable throwable,
CrashData crashData,
PlanBConfig config)
context - thread - of the crashthrowable - the crashes's throwable classcrashData - the crash data of this crashconfig - current config of the libCrashRecoverBehaviour.CrashAction getPreCrashAction()
handleCrash(Context, Thread, Throwable, CrashData, PlanBConfig)CrashRecoverBehaviour.CrashAction getPostCrashAction()
handleCrash(Context, Thread, Throwable, CrashData, PlanBConfig)