该方法报出Exception UserExistException is not compatible with throws clause in UserService.findUserByName(String)
该方法是实现类,其实现的接口中没有抛出异常
本文讨论了一个具体的异常兼容问题,即在 UserService 实现类中的 findUserByName 方法抛出了 ExceptionUserExistException,但该方法所在的接口并未声明此异常。文章旨在解决这一不兼容的问题。
该方法报出Exception UserExistException is not compatible with throws clause in UserService.findUserByName(String)
该方法是实现类,其实现的接口中没有抛出异常
1万+

被折叠的 条评论
为什么被折叠?
