Unreachable catch block for UserExistException. This exception is never thrown from the try statemen

出现这种状况是对应的try中调用的方法在原来的类中没有抛异常致使的,在原类中抛出异常便可,注意方法

try中有多个能够抛异常的只要其中一个用throws抛出异常该提示会消失。异常