{"action":"created","issue":{"url":"https://api.github.com/repos/nest/nest-simulator/issues/151","labels_url":"https://api.github.com/repos/nest/nest-simulator/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/nest/nest-simulator/issues/151/comments","events_url":"https://api.github.com/repos/nest/nest-simulator/issues/151/events","html_url":"https://github.com/nest/nest-simulator/issues/151","id":115331410,"number":151,"title":"More detailed pynest errors: subclassing the general pynest nest.NESTError class","user":{"login":"flinz","id":97735,"avatar_url":"https://avatars.githubusercontent.com/u/97735?v=3","gravatar_id":"","url":"https://api.github.com/users/flinz","html_url":"https://github.com/flinz","followers_url":"https://api.github.com/users/flinz/followers","following_url":"https://api.github.com/users/flinz/following{/other_user}","gists_url":"https://api.github.com/users/flinz/gists{/gist_id}","starred_url":"https://api.github.com/users/flinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flinz/subscriptions","organizations_url":"https://api.github.com/users/flinz/orgs","repos_url":"https://api.github.com/users/flinz/repos","events_url":"https://api.github.com/users/flinz/events{/privacy}","received_events_url":"https://api.github.com/users/flinz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-05T17:17:05Z","updated_at":"2015-11-20T16:08:25Z","closed_at":null,"body":"So far the pynest API only throws a single error class, the [NESTError](https://github.com/nest/nest-simulator/blob/master/pynest/pynestkernel.pyx#L79).\r\n\r\nIn order to catch more detailed errors on the python side, it probably would make sense to subclass this error into a few more python-side error classes, reflecting the [actually raised SLI exceptions](https://github.com/nest/nest-simulator/blob/master/sli/sliexceptions.h).\r\n\r\nAny thoughts on this?"},"comment":{"url":"https://api.github.com/repos/nest/nest-simulator/issues/comments/158445173","html_url":"https://github.com/nest/nest-simulator/issues/151#issuecomment-158445173","issue_url":"https://api.github.com/repos/nest/nest-simulator/issues/151","id":158445173,"user":{"login":"apeyser","id":96407,"avatar_url":"https://avatars.githubusercontent.com/u/96407?v=3","gravatar_id":"","url":"https://api.github.com/users/apeyser","html_url":"https://github.com/apeyser","followers_url":"https://api.github.com/users/apeyser/followers","following_url":"https://api.github.com/users/apeyser/following{/other_user}","gists_url":"https://api.github.com/users/apeyser/gists{/gist_id}","starred_url":"https://api.github.com/users/apeyser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apeyser/subscriptions","organizations_url":"https://api.github.com/users/apeyser/orgs","repos_url":"https://api.github.com/users/apeyser/repos","events_url":"https://api.github.com/users/apeyser/events{/privacy}","received_events_url":"https://api.github.com/users/apeyser/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T16:08:25Z","updated_at":"2015-11-20T16:08:25Z","body":"Agreed that would be the best solution. The next question is implementation and hierarchy. I'll have to look into how the exception is currently constructed and if there's a reasonable automated way to do this. "}}