catch 请求错误带来的异常
refactoring