interruptedexception信息详情

interruptedexception发音

意思翻译

中断异常

相似词语短语

interrupted mating───中断杂交

interrupted ivc───中断下腔静脉

interrupter───n.打断者,阻碍者;[电]断续器,断流器

interrupted sleep───睡眠中断

boyish girl interrupted───孩子气的女孩打断了他的话

interrupted kill───中断杀戮

continually interrupted───不断中断

interrupted time series───中断时间序列

interrupted speech───断续语言

interrupted definition───中断定义

双语使用场景

When a blocking method detects interruption and throws InterruptedException, it clears the interrupted status.───当一个阻塞方法检测到中断并抛出InterruptedException时,它清除中断状态。

Since this application has not defined another thread to cause the interrupt, it doesn't bother to catch InterruptedException.───由于这个应用程序并没有定义其他的线程,所以并不用关心如何处理该异常。

But then the compiler or IDE balks that you haven't dealt with the checked InterruptedException.───但是编译器或IDE报错说没有处理检查到的InterruptedException。

You can see this in Listing 3, where the accessResource method throws an InterruptedException while accessing the shared resource.───您可以从清单3的代码看到这一点,其中accessResource方法在访问共享资源时抛出了一个InterruptedException异常。

Sometimes throwing InterruptedException is not an option, such as when a task defined by Runnable calls an interruptible method.───有时候抛出InterruptedException并不合适,例如当由Runnable定义的任务调用一个可中断的方法时,就是如此。

英语使用场景