Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用该异常中的窗口,即在函数中写入“线程从等待状态中断”,如果发生异常,它将抛出到父 try catch 块。但是对于这个异常 throw 语句 break 并不能进一步工作。请尽快提供解决方案
要解决此错误,请编写 try catch 块并将错误抛出到 catch 块中,然后写入空 finally 块。它会自动抛出错误来捕获,您可以轻松处理错误。