{ "id": "167536", "key": "TIMOB-24672", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "10000", "description": "", "name": "Done" }, "resolutiondate": "2017-05-24T22:29:29.000+0000", "created": "2017-05-10T08:51:22.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-24T22:29:44.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "We should make sure to catch every exception that is happening within async operations.\r\n\r\nTypically it's going to look like below.\r\n\r\n{code}\r\nconcurrency::create_task(object__->DoSomethingAsync()).then([](concurrency::task task)({\r\n try {\r\n task.get();\r\n } catch (Platform::Exception^ e) {\r\n // we might want to log error message, but\r\n // we should not throw exception inside async operations.\r\n // we might want to log error message and HRESULT too\r\n } catch (...) {\r\n // we might want to log this, but\r\n // we should not throw exception inside async operations.\r\n }\r\n})\r\n{code}", "attachment": [], "flagged": false, "summary": "Windows: Catch every exception within async operations", "creator": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 896, "state": "closed", "name": "2017 Sprint 11 SDK", "startDate": "2017-05-22T02:41:17.888Z", "endDate": "2017-06-05T02:41:00.000Z", "completeDate": "2017-06-05T00:14:33.418Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "420395", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Done with https://github.com/appcelerator/titanium_mobile_windows/pull/1001", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-24T22:29:29.000+0000", "updated": "2017-05-24T22:29:29.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }