[英]What happens if you throw an Exception from inside UncaughtExceptionHandler?
Not that it is a good design or it is something I am planning to do. 并不是说这是一个好的设计,也不是我计划做的事情。 Just curious, what happens if you throw an Exception
from inside an UncaughtExceptionHandler
? 好奇,如果你从UncaughtExceptionHandler
抛出一个Exception
会发生什么? Is it possible to catch it somewhere? 是否可以在某处捕捉到它?
Quote from the method's Javadoc : 从方法的Javadoc引用:
Any exception thrown by this method will be ignored by the Java Virtual Machine. Java虚拟机将忽略此方法抛出的任何异常。
Java虚拟机将忽略此方法抛出的任何异常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.