Generic Rest Service Jersey Error Handling

You may also like...

2
Leave a Reply

avatar
1 Comment threads
1 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
2 Comment authors
MemoryNotFoundPankaj Choudhary Recent comment authors
  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.