I have some code that I know will reach max timeout at some point.
I tried using try-catch to handle this error, but I have just been informed timeouts can't be caught this way.
Is there a way I can catch the error, or count processing time and handle the error just before it reaches timeout?