Since I want to do a website monitoring, I need to use multi-threading, and I want to access the timeout during the execution process. I use try() to throw an exception and let the program continue to execute, but it does not succeed. But using a single thread is enough. I searched online and found the reason: because the exception thrown by the main thread cannot be executed in other threads. Now you have found the problem, but don’t know how to solve it? Please give me some advice.