Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Try Catch in Apigee to handle errors

ekumar
New Member

Hi

I have a requirement where I was sending multiple requests using "Post" method to a backend service.

If I get an error when I post a particular request, I want to catch that payload of request and post to backend service by "Patch" method and after completing the operation again come to "Post" a new request.

So, I want to handle it like Try and catch. If i get an error it will go to catch block and the code in try block runs.

Can anyone please help me in this

0 3 909
3 REPLIES 3