报错提示

The inspection reports exceptions which are neither enclosed in a try-catch block nor documented using the '@throws' tag.

解决办法

function前面的注释 /* 加上'@throws'标签
如图