线程的run()方法不能抛出异常,咋办?

就是在实现类中设置一个List变量,当run()里面发生异常时,把这个异常装到List中去。然后等线程结束时,再来检验这个List

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.