public abstract class AbstractExceptionHandler
extends java.lang.Object
implements java.lang.Thread.UncaughtExceptionHandler
| Constructor and Description |
|---|
AbstractExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(android.content.Context ctx)
Clear the stacktrace file storage
|
static int |
getAppCode(android.content.Context context)
Get the app code from a context
|
abstract android.content.Context |
getContext()
Get the application context
|
abstract java.lang.String |
getFileName()
Specify any file name in which stacktraces should be temporarily saved
|
abstract java.lang.Class<?> |
getServiceClass()
This will be called as soon as the exception has been logged, you must override this to send the stacktraces to your server
|
boolean |
hasStoredExceptions()
Check if there are exceptions stored in the file
Warning: this does a full read of the file
|
java.util.ArrayList<UnhandledException> |
load(android.content.Context ctx)
Load stacktaces from file
|
void |
uncaughtException(java.lang.Thread t,
java.lang.Throwable e) |
public abstract android.content.Context getContext()
public abstract java.lang.String getFileName()
public abstract java.lang.Class<?> getServiceClass()
public void uncaughtException(java.lang.Thread t,
java.lang.Throwable e)
uncaughtException in interface java.lang.Thread.UncaughtExceptionHandlerpublic final java.util.ArrayList<UnhandledException> load(android.content.Context ctx)
ctx - public final boolean hasStoredExceptions()
public final void clear(android.content.Context ctx)
ctx - public static final int getAppCode(android.content.Context context)
context -