Generic Rest Service Jersey Error Handling

You may also like...

Subscribe
Notify of
guest
2 Comments
Oldest
Newest
Inline Feedbacks
View all comments
Pankaj Choudhary
Pankaj Choudhary
March 26, 2018 13:28

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.

2
0
Would love your thoughts, please comment.x
()
x