idea抛异常方式

  选中需要抛异常的行,按alt+enter或者ctrl+alt+t,然后上下键选择自己抛异常的方式即可,如下图:

原文地址:https://www.cnblogs.com/share-record/p/11073927.html