389
Views
1
Comments
Solved
How to handle timeout exception?

Hi,


I'm having trouble with the timeout from webservices that I'm consuming. I set the timeout in the action and it works perfectly, but I wanted to handle the exception generated by the timeout. Is there an specific way to do this or an specific exception to handle?

2020-02-28 09-46-54
Eduardo Jauch
Solution

Hello Matheus,

How do you wants to handle the exception?
You can add an exception handler (AllExceptions, if I am not mistaken), and it should be triggered in case a Timeout happens.

If you need to keep the logic going on, you could separate the call inside a server action, and use the exception handler to set a return value that tells to the caller that the action was uncessussfull.

Cheers.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.