|
@@ -131,10 +131,14 @@ public class AttendanceAssessmentSdk {
|
|
default:
|
|
default:
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
- } catch (Exception e) {
|
|
|
|
|
|
+ } catch (cn.hutool.core.io.IORuntimeException ioRuntimeException) {
|
|
|
|
+ throw new CustomException("接口请求超时");
|
|
|
|
+ } catch (CustomException e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
- logger.error("接口调用异常", e.getMessage());
|
|
|
|
- apiResult = "接口调用异常:" + e.getMessage();
|
|
|
|
|
|
+ } catch (Exception exception) {
|
|
|
|
+ exception.printStackTrace();
|
|
|
|
+ logger.error("接口调用异常", exception.getMessage());
|
|
|
|
+ apiResult = "接口调用异常:" + exception.getMessage();
|
|
} finally {
|
|
} finally {
|
|
// 接口调用结束后续逻辑处理
|
|
// 接口调用结束后续逻辑处理
|
|
String finalApiResult = apiResult;
|
|
String finalApiResult = apiResult;
|