Skip to content

Commit eb87f5c

Browse files
authored
Report all throwable types, no matter if throwable is type error or not (#199)
1 parent eb30ab3 commit eb87f5c

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Android/BacktraceAndroidBackgroundUnhandledExceptionHandler.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,10 @@ public void uncaughtException(final Thread thread, final Throwable throwable) {
4848
finish();
4949
return;
5050
}
51-
if (throwable instanceof Exception) {
52-
String throwableType = throwable.getClass().getName();
53-
Log.d(LOG_TAG, "Detected unhandled background thread exception. Exception type: " + throwableType + ". Reporting to Backtrace");
54-
ReportThreadException(throwableType + " : " + throwable.getMessage(), stackTraceToString(throwable.getStackTrace()));
55-
} else {
56-
Log.d(LOG_TAG, "Detected android crash. Using native crash reporter to report an error.");
57-
finish();
58-
}
51+
String throwableType = throwable.getClass().getName();
52+
Log.d(LOG_TAG, "Detected unhandled background thread exception. Exception type: " + throwableType + ". Reporting to Backtrace");
53+
ReportThreadException(throwableType + " : " + throwable.getMessage(), stackTraceToString(throwable.getStackTrace()));
54+
finish();
5955
}
6056

6157
public void ReportThreadException(String message, String stackTrace) {

0 commit comments

Comments
 (0)