{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfCake/crud/issues/407","repository_url":"https://api.github.com/repos/FriendsOfCake/crud","labels_url":"https://api.github.com/repos/FriendsOfCake/crud/issues/407/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfCake/crud/issues/407/comments","events_url":"https://api.github.com/repos/FriendsOfCake/crud/issues/407/events","html_url":"https://github.com/FriendsOfCake/crud/issues/407","id":143021285,"number":407,"title":"API listener overrides custom-set ExceptionRenderer","user":{"login":"curtisgibby","id":1086964,"avatar_url":"https://avatars.githubusercontent.com/u/1086964?v=3","gravatar_id":"","url":"https://api.github.com/users/curtisgibby","html_url":"https://github.com/curtisgibby","followers_url":"https://api.github.com/users/curtisgibby/followers","following_url":"https://api.github.com/users/curtisgibby/following{/other_user}","gists_url":"https://api.github.com/users/curtisgibby/gists{/gist_id}","starred_url":"https://api.github.com/users/curtisgibby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curtisgibby/subscriptions","organizations_url":"https://api.github.com/users/curtisgibby/orgs","repos_url":"https://api.github.com/users/curtisgibby/repos","events_url":"https://api.github.com/users/curtisgibby/events{/privacy}","received_events_url":"https://api.github.com/users/curtisgibby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-23T17:05:30Z","updated_at":"2016-05-12T14:24:22Z","closed_at":null,"body":"In **ApiListener::registerExceptionHandler()**, the $exceptionRenderer is hard-coded to use this plugin's exception renderer, `'Crud\\Error\\ExceptionRenderer'` and completely ignores anything that the user has set in their app.php config for the exception renderer.\r\n\r\nI think this behavior should be modified to check to see if the user-specified exception renderer class is a subclass of CRUD's ExceptionRenderer, and if so, use that rather than the hard-coded version. I'd like to be able to extend Crud\\Error\\ExceptionRenderer (i.e. App\\Error\\CustomExceptionRenderer extends Crud\\Error\\ExceptionRenderer)."},"comment":{"url":"https://api.github.com/repos/FriendsOfCake/crud/issues/comments/218773159","html_url":"https://github.com/FriendsOfCake/crud/issues/407#issuecomment-218773159","issue_url":"https://api.github.com/repos/FriendsOfCake/crud/issues/407","id":218773159,"user":{"login":"bravo-kernel","id":230500,"avatar_url":"https://avatars.githubusercontent.com/u/230500?v=3","gravatar_id":"","url":"https://api.github.com/users/bravo-kernel","html_url":"https://github.com/bravo-kernel","followers_url":"https://api.github.com/users/bravo-kernel/followers","following_url":"https://api.github.com/users/bravo-kernel/following{/other_user}","gists_url":"https://api.github.com/users/bravo-kernel/gists{/gist_id}","starred_url":"https://api.github.com/users/bravo-kernel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bravo-kernel/subscriptions","organizations_url":"https://api.github.com/users/bravo-kernel/orgs","repos_url":"https://api.github.com/users/bravo-kernel/repos","events_url":"https://api.github.com/users/bravo-kernel/events{/privacy}","received_events_url":"https://api.github.com/users/bravo-kernel/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T14:24:22Z","updated_at":"2016-05-12T14:24:22Z","body":"Is the above claim correct, e.g. no other way to specify a custom ExceptionRenderer?\r\n\r\nIf so, would a PR to set a different ExceptionRenderer class be welcome?"}}