在一个Class里throw一个Exception,运行一定被中断么,有没有在Controller里给catch回来的方法?

如题:

在一个Class里throw一个Exception,运行一定被中断么,有没有在Controller里给catch回来的方法?

阅读 4.5k
2 个回答

在抛出异常的地方先catch异常,然后在catch里面人为的throw 异常,这样就可以异常往上层方法抛出了

推荐问题