[
https://issues.apache.org/jira/browse/STANBOL-1082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Fabian Christ updated STANBOL-1082:
-----------------------------------
Component/s: Reasoners
> Exception Handling in Reasoner
> ------------------------------
>
> Key: STANBOL-1082
> URL: https://issues.apache.org/jira/browse/STANBOL-1082
> Project: Stanbol
> Issue Type: Bug
> Components: Reasoners
> Reporter: Reto Bachmann-Gmür
> Assignee: Reto Bachmann-Gmür
> Fix For: 0.12.0
>
>
> The reasoner is eating exception preventing correct handling by caller and
> identification of the cause.
> E.g.
> {code}
> return new ResponseTaskBuilder(uriInfo, context,
> headers).build(result);
> } catch (InconsistentInputException e) {
> new WebApplicationException(e);
> } catch (ReasoningServiceException e) {
> new WebApplicationException(e);
> } catch (UnsupportedTaskException e) {
> new WebApplicationException(e);
> } catch (Exception e) {
> new WebApplicationException(e);
> }
> throw new WebApplicationException(new Exception("Error"),
> Response.Status.INTERNAL_SERVER_ERROR);
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira