|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hermit.android.core.Errors
public class Errors
Error handling and reporting utilities.
Method Summary | |
---|---|
static Errors |
getInstance(Context context)
Get the single instance of this class for the given Activity, creating it if necessary. |
static void |
reportException(Context context,
java.lang.Exception e)
Report an unexpected exception to the user by popping up a dialog with some debug info. |
void |
reportException(java.lang.Exception e)
Report an unexpected exception to the user by popping up a dialog with some debug info. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Errors getInstance(Context context)
context
- The Activity for which we want an error reporter.
public static void reportException(Context context, java.lang.Exception e)
This method may be called from any thread. The reporting will be deferred to the UI thread.
context
- The Activity for which we want an error reporter.e
- The exception.public void reportException(java.lang.Exception e)
This method may be called from any thread. The reporting will be deferred to the UI thread.
e
- The exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |