抛异常:选中需要抛异常的行,按alt+enter或者ctrl+alt+t,然后上下键选择自己抛异常的方式即可。
idea快捷键
原文:https://www.cnblogs.com/share-record/p/11073953.html