How to handle timeout exception?

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?

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.

Solution