Add detailed error information for exceptions #24
Milestone
Comments
We should unify the exception in RESTier. That is to say if LINQ expression or EF throws an exception. RESTier should wrap it and throw proper exception or return correct status code instead of just leaking the exception to end user. As an example, #47 shows a duration-related exception thrown by EF. In this case, we should catch it and return 4XX bad request instead of return 500 internal server error. This is a client request problem not service issue. |
Part of the work mentioned is already done by ec3dc8a |
Related pull request #243 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In some places the code just throw exception without error message. We'd better add detailed information for those error messages.
The text was updated successfully, but these errors were encountered: