Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sivaprasadreddy/2916687 to your computer and use it in GitHub Desktop.
Save sivaprasadreddy/2916687 to your computer and use it in GitHub Desktop.
RESTEasyDemo Custom ExceptionHandlers output
case 1 : GET http://localhost:8080/resteasy-demo/rest/users/0
Response :
<response>
<status>failed</status>
<message>User Id[0] should not be less than 1.</message>
<internalError>null</internalError>
</response>
case 2: GET http://localhost:8080/resteasy-demo/rest/users/100
Response :
<response>
<status>failed</status>
<message>No User found with Id :[100]</message>
</response>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment