Search in sources :

Example 1 with CrashReport

use of com.codename1.system.CrashReport in project CodenameOne by codenameone.

the class CodenameOneThread method handleException.

public static void handleException(Throwable err) {
    Thread t = Thread.currentThread();
    if (t instanceof CodenameOneThread) {
        Log.p(err.toString());
        Log.p(((CodenameOneThread) t).getStack(err));
        Preferences.set("$CN1Uncaught", true);
        CrashReport r = Display.getInstance().getCrashReporter();
        if (r != null) {
            r.exception(err);
        }
    }
}
Also used : CrashReport(com.codename1.system.CrashReport)

Aggregations

CrashReport (com.codename1.system.CrashReport)1