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:23:20 UTC

[jira] [Created] (STANBOL-1082) Exception Handling in Reasoner

Reto Bachmann-Gmür created STANBOL-1082:
-------------------------------------------

             Summary: 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


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