metron-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jjmeyer0 <>
Subject [GitHub] incubator-metron issue #316: METRON-503: Metron REST API
Date Wed, 11 Jan 2017 00:15:06 GMT
Github user jjmeyer0 commented on the issue:
    @merrimanr yes, I was thinking of something along these lines. At a high level I was thinking
that any exception that bubbled up through the controller should be mapped to an error response.
I believe Spring uses `ResponseEntityExceptionHandler` to help with this (
The benefits I see from doing this are keeping the error handling consistent, separating concerns,
and giving better feedback to the end user. It does require more thought on what exceptions
are thrown, and if the exception handler has the ability to map them to a response . Does
this make sense?

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message