Why can't the throw in timeout be accessed by catch?

clipboard.png

Why the throw in timeout cannot be accessed by catch?
guess 1: will there be try/catch
guess 2: timeout creates a new macro task when executing the macro task, and the try/catch syntax sugar has finished executing and can no longer be catch? when executing the macro task.

Mar.14,2022
The (asynchronous) task of the

timer is added to the waiting queue, and the code before the queue is executed. The code caught by the exception is executed before it is executed asynchronously. Therefore, exception catching should be written into the timer.

Menu