{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/ApplicationInsights-iOS/issues/112","labels_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-iOS/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-iOS/issues/112/comments","events_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-iOS/issues/112/events","html_url":"https://github.com/Microsoft/ApplicationInsights-iOS/issues/112","id":97048561,"number":112,"title":"Handled exceptions are always sent as crashes and not as handled exceptions","user":{"login":"ryanholden8","id":10402627,"avatar_url":"https://avatars.githubusercontent.com/u/10402627?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanholden8","html_url":"https://github.com/ryanholden8","followers_url":"https://api.github.com/users/ryanholden8/followers","following_url":"https://api.github.com/users/ryanholden8/following{/other_user}","gists_url":"https://api.github.com/users/ryanholden8/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanholden8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanholden8/subscriptions","organizations_url":"https://api.github.com/users/ryanholden8/orgs","repos_url":"https://api.github.com/users/ryanholden8/repos","events_url":"https://api.github.com/users/ryanholden8/events{/privacy}","received_events_url":"https://api.github.com/users/ryanholden8/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-24T13:06:01Z","updated_at":"2015-07-24T14:19:15Z","closed_at":null,"body":"I have this code:\r\n\r\n```objc\r\n@try {\r\n    @throw [[NSException alloc] initWithName:@\"test\" reason:@\"reason\"];\r\n} @catch (NSException *exception) {\r\n    [MSAITelemetryManager trackException:exception];\r\n}\r\n```\r\n\r\nThis is tracked as a crash in the portal, but it's a handled exception.\r\n\r\nTaking a look at the source code shows all exceptions go through the crash reporting process, regardless of handled or not. - https://github.com/Microsoft/ApplicationInsights-iOS/blob/master/Classes/MSAITelemetryManager.m#L239-L254\r\n\r\nUntil this is handled I guess the workaround would be to use traceMessage with custom properties?"},"comment":{"url":"https://api.github.com/repos/Microsoft/ApplicationInsights-iOS/issues/comments/124538628","html_url":"https://github.com/Microsoft/ApplicationInsights-iOS/issues/112#issuecomment-124538628","issue_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-iOS/issues/112","id":124538628,"user":{"login":"ryanholden8","id":10402627,"avatar_url":"https://avatars.githubusercontent.com/u/10402627?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanholden8","html_url":"https://github.com/ryanholden8","followers_url":"https://api.github.com/users/ryanholden8/followers","following_url":"https://api.github.com/users/ryanholden8/following{/other_user}","gists_url":"https://api.github.com/users/ryanholden8/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanholden8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanholden8/subscriptions","organizations_url":"https://api.github.com/users/ryanholden8/orgs","repos_url":"https://api.github.com/users/ryanholden8/repos","events_url":"https://api.github.com/users/ryanholden8/events{/privacy}","received_events_url":"https://api.github.com/users/ryanholden8/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T14:19:15Z","updated_at":"2015-07-24T14:19:15Z","body":"Hi Lukas,\r\n\r\nThank you for the response, I appreciate it!\r\n\r\nTrue, but as with the example code above, I'm generating a exception object specifically for the purpose of sending a handled exception to Application Insights.\r\n\r\nIs there a way I can send a NSError Object? That's the original object I'm dealing with, not a exception. Or is safe to say that handled exceptions are not supported by Application Insights for iOS at the present time?\r\n\r\nAgain, thank you for your time! :)"}}