Generic Rest Service Jersey Error Handling

You may also like...

Leave a Reply

2 Comments on "Generic Rest Service Jersey Error Handling"

avatar
  Subscribe  
newest oldest
Notify of
Pankaj Choudhary
Guest
Pankaj Choudhary

Hi ,

Your tutorial is crisp and clear. However I have one question. I want to have a response something like below json structure

ProblemDetails {
status:405
code:1
message:”user not found”
}

I tried to achieve this by embedding ProblemDetails object in Error class, but it didn’t worked for me.

Any help will be appreciated in this regard, thanks a lot.