Title: Try/catch on generated override of @Background and @UiThread hiding exception from global exception handler. · Issue #646 · androidannotations/androidannotations · GitHub
Open Graph Title: Try/catch on generated override of @Background and @UiThread hiding exception from global exception handler. · Issue #646 · androidannotations/androidannotations
X Title: Try/catch on generated override of @Background and @UiThread hiding exception from global exception handler. · Issue #646 · androidannotations/androidannotations
Description: Hello, The following code shows the generated code of a @UiThread method: @Override public void logIn() { handler_.post(new Runnable() { @Override public void run() { try { LogInFragment_.super.logIn(); } catch (RuntimeException e) { Log...
Open Graph Description: Hello, The following code shows the generated code of a @UiThread method: @Override public void logIn() { handler_.post(new Runnable() { @Override public void run() { try { LogInFragment_.super.log...
X Description: Hello, The following code shows the generated code of a @UiThread method: @Override public void logIn() { handler_.post(new Runnable() { @Override public void run() { try { LogInFragment_.super.log...
Opengraph URL: https://github.com/androidannotations/androidannotations/issues/646
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Try/catch on generated override of @Background and @UiThread hiding exception from global exception handler.","articleBody":"Hello, \n\nThe following code shows the generated code of a @UiThread method:\n\n``` java\n @Override\n public void logIn() {\n handler_.post(new Runnable() {\n @Override\n public void run() {\n try {\n LogInFragment_.super.logIn();\n } catch (RuntimeException e) {\n Log.e(\"LogInFragment_\", \"A runtime exception was thrown while executing code in a runnable\", e);\n }\n }\n\n }\n );\n }\n```\n\nNotice that it wraps the super.logIn() method call within a try/catch that logs the exception.\n\nIn 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.\n\nWe'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.\n\nThanks,\n- Quenio\n","author":{"url":"https://github.com/quenio","@type":"Person","name":"quenio"},"datePublished":"2013-06-26T13:49:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":24},"url":"https://github.com/646/androidannotations/issues/646"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:102b0fda-57a4-3633-44d2-40d3b2942a30 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9DEE:1B145:40740B:561AF0:6A61377D |
| html-safe-nonce | b1ca313c4703c33591cd246f5b627a35a5b03ea2b796daf328062d3c260d4f04 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REVFOjFCMTQ1OjQwNzQwQjo1NjFBRjA6NkE2MTM3N0QiLCJ2aXNpdG9yX2lkIjoiMzA4NDkwOTg5NDc3ODgyODY2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cd224e162f94bd972b0abdd0d516895b66825acbbe30900dda6a17410bc41a36 |
| hovercard-subject-tag | issue:16032844 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/androidannotations/androidannotations/646/issue_layout |
| twitter:image | https://opengraph.githubassets.com/611c4d3ce7b211603388fe885c3edf62ef22d868bb939b6ba8414afefffc930a/androidannotations/androidannotations/issues/646 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/611c4d3ce7b211603388fe885c3edf62ef22d868bb939b6ba8414afefffc930a/androidannotations/androidannotations/issues/646 |
| og:image:alt | Hello, The following code shows the generated code of a @UiThread method: @Override public void logIn() { handler_.post(new Runnable() { @Override public void run() { try { LogInFragment_.super.log... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | quenio |
| hostname | github.com |
| expected-hostname | github.com |
| None | c5eca2d5d770261725d2d44a57879a5bd9643e5b84204081dc36933ab40e63a2 |
| turbo-cache-control | no-preview |
| go-import | github.com/androidannotations/androidannotations git https://github.com/androidannotations/androidannotations.git |
| octolytics-dimension-user_id | 1315313 |
| octolytics-dimension-user_login | androidannotations |
| octolytics-dimension-repository_id | 3116751 |
| octolytics-dimension-repository_nwo | androidannotations/androidannotations |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3116751 |
| octolytics-dimension-repository_network_root_nwo | androidannotations/androidannotations |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | dac3a1c903b48538720e0bc780047237dd89fd4c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width