Title: Promises: Unhandled rejections · Issue #32 · exceptionless/Exceptionless.JavaScript · GitHub
Open Graph Title: Promises: Unhandled rejections · Issue #32 · exceptionless/Exceptionless.JavaScript
X Title: Promises: Unhandled rejections · Issue #32 · exceptionless/Exceptionless.JavaScript
Description: One big issue with exception handling in JavaScript is Promises: When you don't explicitly handle an error using a rejection callback, most Promise libraries provide global events like Promise.onPossiblyUnhandledRejection (bluebird.js), ...
Open Graph Description: One big issue with exception handling in JavaScript is Promises: When you don't explicitly handle an error using a rejection callback, most Promise libraries provide global events like Promise.onPo...
X Description: One big issue with exception handling in JavaScript is Promises: When you don't explicitly handle an error using a rejection callback, most Promise libraries provide global events like Promise....
Opengraph URL: https://github.com/exceptionless/Exceptionless.JavaScript/issues/32
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Promises: Unhandled rejections","articleBody":"One big issue with exception handling in JavaScript is **Promises**: When you don't explicitly handle an error using a rejection callback, most Promise libraries provide global events like `Promise.onPossiblyUnhandledRejection` (bluebird.js), `Q.getUnhandledReasons` (Q.js) or `process.on('unhandledRejection)` (Node.js). Not subscribing to those events when using Promises probably contributes to many programmer errors staying unnoticed, as the application won't neccessarily terminate.\n\nIt would be cool if Exceptionless.js checked for the existence of such modules and events and created handlers that automatically submit the exceptions. While we do that, we should refactor all global exception handlers into implementations of an interface that can be added to the configuration like plugins.\n\nName proposals:\n- IGlobalExceptionHandler\n- IExceptionHook\n- IExceptionSource\n","author":{"url":"https://github.com/frankebersoll","@type":"Person","name":"frankebersoll"},"datePublished":"2015-10-11T07:52:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/32/Exceptionless.JavaScript/issues/32"}
| 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:74e0f276-6817-06c4-3531-b61ee9743626 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A49A:1462F2:4090C9:5B9AF0:69724555 |
| html-safe-nonce | ed449c85e79aa4c8547e29657867abe2d3db09f6c21b1ea08f7aaf4210298023 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDlBOjE0NjJGMjo0MDkwQzk6NUI5QUYwOjY5NzI0NTU1IiwidmlzaXRvcl9pZCI6IjcxMDk4MzAzOTYxNzc2OTYwODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | eb0c15c11c7fcb1157cf2fea0e27937a8d93c379bbfe3c38396206913fa13ce8 |
| hovercard-subject-tag | issue:110840818 |
| 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/exceptionless/Exceptionless.JavaScript/32/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c27568585070af0d78b18eda9988739becd8ed04b8f64dad8ac863749df12cb6/exceptionless/Exceptionless.JavaScript/issues/32 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c27568585070af0d78b18eda9988739becd8ed04b8f64dad8ac863749df12cb6/exceptionless/Exceptionless.JavaScript/issues/32 |
| og:image:alt | One big issue with exception handling in JavaScript is Promises: When you don't explicitly handle an error using a rejection callback, most Promise libraries provide global events like Promise.onPo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | frankebersoll |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2c16db4e575031f6e3be03e0437c1ab663e0b4643ba5cbbfba48c1e4fc056a11 |
| turbo-cache-control | no-preview |
| go-import | github.com/exceptionless/Exceptionless.JavaScript git https://github.com/exceptionless/Exceptionless.JavaScript.git |
| octolytics-dimension-user_id | 5912469 |
| octolytics-dimension-user_login | exceptionless |
| octolytics-dimension-repository_id | 29558878 |
| octolytics-dimension-repository_nwo | exceptionless/Exceptionless.JavaScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 29558878 |
| octolytics-dimension-repository_network_root_nwo | exceptionless/Exceptionless.JavaScript |
| 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 | 584fea6daacd0ba6f8dbec869937910ee0ae2e64 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width