{"action":"closed","issue":{"url":"https://api.github.com/repos/signnow/CudaSign.NETSDK/issues/2","labels_url":"https://api.github.com/repos/signnow/CudaSign.NETSDK/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/signnow/CudaSign.NETSDK/issues/2/comments","events_url":"https://api.github.com/repos/signnow/CudaSign.NETSDK/issues/2/events","html_url":"https://github.com/signnow/CudaSign.NETSDK/issues/2","id":113922892,"number":2,"title":"Exception details should not be buried","user":{"login":"cwensley","id":367446,"avatar_url":"https://avatars.githubusercontent.com/u/367446?v=3","gravatar_id":"","url":"https://api.github.com/users/cwensley","html_url":"https://github.com/cwensley","followers_url":"https://api.github.com/users/cwensley/followers","following_url":"https://api.github.com/users/cwensley/following{/other_user}","gists_url":"https://api.github.com/users/cwensley/gists{/gist_id}","starred_url":"https://api.github.com/users/cwensley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwensley/subscriptions","organizations_url":"https://api.github.com/users/cwensley/orgs","repos_url":"https://api.github.com/users/cwensley/repos","events_url":"https://api.github.com/users/cwensley/events{/privacy}","received_events_url":"https://api.github.com/users/cwensley/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-28T21:12:02Z","updated_at":"2015-11-03T11:39:15Z","closed_at":"2015-11-03T11:39:15Z","body":"When an exception is thrown, the details of the exception are not available. For example, [here](https://github.com/signnow/CudaSign.NETSDK/blob/master/SNDotNetSDK/ServiceImpl/OAuth2TokenService.cs#L51).\r\n\r\nThe catch block should set the inner exception of the new exception, or remove the try/catch block.\r\n\r\nAlso, SystemException should not be used here.  See the important notes on [this msdn page] (https://msdn.microsoft.com/en-us/library/system.systemexception(v=vs.110).aspx).  It states:\r\n\r\n> Because SystemException serves as the base class of a variety of exception types, your code should not throw a SystemException exception, nor should it attempt to handle a SystemException exception unless you intend to re-throw the original exception."}}