{"action":"closed","issue":{"url":"https://api.github.com/repos/jspresso/jspresso-ce/issues/186","repository_url":"https://api.github.com/repos/jspresso/jspresso-ce","labels_url":"https://api.github.com/repos/jspresso/jspresso-ce/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/jspresso/jspresso-ce/issues/186/comments","events_url":"https://api.github.com/repos/jspresso/jspresso-ce/issues/186/events","html_url":"https://github.com/jspresso/jspresso-ce/issues/186","id":180241672,"number":186,"title":"Jspresso app is crashing when a Business Exception is raised due to sanity checks ","user":{"login":"maximehamm","id":4968224,"avatar_url":"https://avatars.githubusercontent.com/u/4968224?v=3","gravatar_id":"","url":"https://api.github.com/users/maximehamm","html_url":"https://github.com/maximehamm","followers_url":"https://api.github.com/users/maximehamm/followers","following_url":"https://api.github.com/users/maximehamm/following{/other_user}","gists_url":"https://api.github.com/users/maximehamm/gists{/gist_id}","starred_url":"https://api.github.com/users/maximehamm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximehamm/subscriptions","organizations_url":"https://api.github.com/users/maximehamm/orgs","repos_url":"https://api.github.com/users/maximehamm/repos","events_url":"https://api.github.com/users/maximehamm/events{/privacy}","received_events_url":"https://api.github.com/users/maximehamm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-30T07:49:49Z","updated_at":"2016-09-30T17:08:57Z","closed_at":"2016-09-30T17:08:57Z","body":"The sanity check management (since jspresso 4.2.8?) do crash the app... even when the exception is an instance of BusinessException !\r\n\r\nIn fact it is a specific case : \r\n\r\nMy frontend action is executing another action... catching \"hibernateException\" to display my own specific user-friendly message... and deciding what to don for example when a column does not exists...\r\n\r\nEven if my action catches the \"hibernateException\", the controller is scuttling the app !\r\n\r\nCan you may be add something into the action's context to allow to raise some technical exceptions ?\r\n\r\nLike that : \r\n```\r\nClass<?> allowed = (Class<?>) context.get(\"ALLOWED_TECH_EXCEPTION\");\r\nif (allowed!=null && allowed.isAssignableFrom(ex.getClass())) \r\n      throw ex;\r\n} \r\n```"}}
{"actor":{"display_login":"maximehamm"}}