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);
}
}
}
Aggregations