Try/Catch and threading

前端 未结 5 946
谎友^
谎友^ 2021-02-07 13:29

I have an idea why but I\'d like to ask if someone has a good grasp on why the exception raised inside a thread is never caught by the code that started it. Here\'s some very si

5条回答
  •  我在风中等你
    2021-02-07 13:59

    You might want to use an EventGeneratingThread wrapper - this will let you catch and deal with exceptions thrown in threads from the process that spawned them.

提交回复
热议问题