Results 1 to 2 of 2

Thread: Exception handling for REST web services at the client side.

Hybrid View

  1. #1

    Default 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. #2

    Default

    Did you find any way to get your exception?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •