JavaShuo
Unreachable catch block for UserExistException. This exception is never thrown from the try statemen
时间 2019-12-05
标签
unreachable
catch
block
userexistexception
exception
thrown
try
statemen
出现这种状况是对应的try中调用的方法在原来的类中没有抛异常致使的,在原类中抛出异常便可,注意
方法
try中有多个能够抛异常的只要其中一个用throws抛出异常该提示会消失。
异常