Announcement Announcement Module
Collapse
No announcement yet.
Exception handling for REST web services at the client side. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exception handling for REST web services at the client side.

    Hi

    I have a rest service like,

    http://localhost:1001/RestDemo/RestF...123@gmail.com/

    if loadUserByEmail finds a user with abc123@gmail.com it returns the user.

    Otherwise, this method throws UserNotFoundException.

    So, when I type the above URL in browser, I could see, either User Info or Exception Message.

    Can anyone please tell me how to extract that exception message when I call the service Using RestTemplate?

    What I am geting is 401 response code.. But I could not extract the message..

  • #2
    Did you find any way to get your exception?

    Comment

    Working...
    X