You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
The following code shows the generated code of a @UiThread method:
@OverridepublicvoidlogIn() {
handler_.post(newRunnable() {
@Overridepublicvoidrun() {
try {
LogInFragment_.super.logIn();
} catch (RuntimeExceptione) {
Log.e("LogInFragment_", "A runtime exception was thrown while executing code in a runnable", e);
}
}
}
);
}
Notice that it wraps the super.logIn() method call within a try/catch that logs the exception.
In our application, we use BugSense, which has a global exception handler reporting unhandled exceptions. The try/batch block above prevents BugSense from seeing the exceptions.
We'd like the ability to remove the try/catch wrapping in the generated code perhaps via a new boolean property available in the @background and @UiThread annotations, or via some other mechanism.