Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • I followed everything you had explained for my project and I am getting this as output - NotFoundException{statusCode=400, message='Invalid mode of payment'}, however I would like only the JSON part of it.. do you how this can be achieved? Commented Oct 17, 2021 at 15:47
  • 1
    @a11apurva, In NotFoundException class you see toString() method, you should have one more method like toJSON() and return a json object. Commented Oct 18, 2021 at 5:12