{"action":"created","issue":{"url":"https://api.github.com/repos/kbridge/PdbReader/issues/4","labels_url":"https://api.github.com/repos/kbridge/PdbReader/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/kbridge/PdbReader/issues/4/comments","events_url":"https://api.github.com/repos/kbridge/PdbReader/issues/4/events","html_url":"https://github.com/kbridge/PdbReader/issues/4","id":111112032,"number":4,"title":"Fix the god throw","user":{"login":"NoviceLive","id":7678237,"avatar_url":"https://avatars.githubusercontent.com/u/7678237?v=3","gravatar_id":"","url":"https://api.github.com/users/NoviceLive","html_url":"https://github.com/NoviceLive","followers_url":"https://api.github.com/users/NoviceLive/followers","following_url":"https://api.github.com/users/NoviceLive/following{/other_user}","gists_url":"https://api.github.com/users/NoviceLive/gists{/gist_id}","starred_url":"https://api.github.com/users/NoviceLive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoviceLive/subscriptions","organizations_url":"https://api.github.com/users/NoviceLive/orgs","repos_url":"https://api.github.com/users/NoviceLive/repos","events_url":"https://api.github.com/users/NoviceLive/events{/privacy}","received_events_url":"https://api.github.com/users/NoviceLive/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kbridge/PdbReader/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-13T06:04:20Z","updated_at":"2015-10-13T15:57:42Z","closed_at":null,"body":"# Description\r\n\r\nAll exceptions but the `E_PDB_FORMAT` will be handled as `PdbNotFoundException`.\r\n\r\nSay, a god throw, which produces misleading messages.\r\n\r\n# Code Location\r\n\r\nCirca [Pdb.cs#L111](https://github.com/kbridge/PdbReader/blob/master/PdbReader/Pdb.cs#L111).\r\n\r\n# Sample Output\r\n\r\n```\r\nE:\\repo\\PdbReader>PdbReader\\bin\\Debug\\PdbReader.exe list c:\\symbols\\ntkrnlmp.pdb\r\n\\4A1E2990C0D94049AFEAEADA5768EAB31\\ntkrnlmp.pdb\r\nRetrieving the COM class factory for component with CLSID {B86AE24D-BF2F-4AC9-B5\r\nA2-34B14E4CE11D} failed due to the following error: 80040154 Class not registere\r\nd (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).\r\nPdbReader: file not found: c:\\symbols\\ntkrnlmp.pdb\\4A1E2990C0D94049AFEAEADA5768E\r\nAB31\\ntkrnlmp.pdb\r\n```\r\n\r\n# Test Code\r\n\r\n```c#\r\ncatch (COMException ex)\r\n            {\r\n                if (ex.ErrorCode == ErrorCodes.E_PDB_FORMAT)\r\n                {\r\n                    throw new PdbFormatException();\r\n                }\r\n                else\r\n                {\r\n                    Console.WriteLine(ex.Message);\r\n                    throw new PdbNotFoundException();\r\n                }\r\n            }\r\n```"},"comment":{"url":"https://api.github.com/repos/kbridge/PdbReader/issues/comments/147759030","html_url":"https://github.com/kbridge/PdbReader/issues/4#issuecomment-147759030","issue_url":"https://api.github.com/repos/kbridge/PdbReader/issues/4","id":147759030,"user":{"login":"kbridge","id":11605820,"avatar_url":"https://avatars.githubusercontent.com/u/11605820?v=3","gravatar_id":"","url":"https://api.github.com/users/kbridge","html_url":"https://github.com/kbridge","followers_url":"https://api.github.com/users/kbridge/followers","following_url":"https://api.github.com/users/kbridge/following{/other_user}","gists_url":"https://api.github.com/users/kbridge/gists{/gist_id}","starred_url":"https://api.github.com/users/kbridge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbridge/subscriptions","organizations_url":"https://api.github.com/users/kbridge/orgs","repos_url":"https://api.github.com/users/kbridge/repos","events_url":"https://api.github.com/users/kbridge/events{/privacy}","received_events_url":"https://api.github.com/users/kbridge/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T15:57:42Z","updated_at":"2015-10-13T15:57:42Z","body":"See: https://msdn.microsoft.com/en-us/library/2008hf0e.aspx. Errors haven't been handled now is E_INVALIDARG and E_UNEXPECTED, which seem unlikely to rise."}}