在处理阿里巴巴地址异常时,捕获异常的初衷是为了处理它。因此,如果您的应用程序捕获了这种异常,那么最好不要什么都不处理而抛弃之。如果不想处理这个异常,建议将该异常抛给它的调用者。最外层的业务使用者必须处理这种异常,将其转化为用户可以理解为的内容。这是遵循阿里巴巴《Java 开发手册》中关于异常处理的推荐。
When handling the Alibaba address exception, the original intention of catching the exception is to handle it. Therefore, if your application catches this exception, it is best not to discard it without handling it. If you do not want to handle this exception, it is recommended to throw the exception to its caller. The outermost business user must handle this exception and convert it into something that the user can understand. This is in accordance with the recommendations on exception handling in Alibaba's "Java Development Manual".