You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org> on 2013/05/26 10:51:19 UTC
[jira] [Resolved] (STANBOL-1082) Exception Handling in Reasoner
[ https://issues.apache.org/jira/browse/STANBOL-1082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reto Bachmann-Gmür resolved STANBOL-1082.
-----------------------------------------
Resolution: Fixed
Assignee: Reto Bachmann-Gmür
> Exception Handling in Reasoner
> ------------------------------
>
> Key: STANBOL-1082
> URL: https://issues.apache.org/jira/browse/STANBOL-1082
> Project: Stanbol
> Issue Type: Bug
> Reporter: Reto Bachmann-Gmür
> Assignee: Reto Bachmann-Gmür
>
> 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