|
发表于 2020-4-17 23:18:00
|
显示全部楼层
} catch (Exception e) {
/ k+ B8 F3 n6 o6 C0 Q1 B& P. @ log.error("{}[{}]", e.getMessage(), e);* Z2 ^. M& W& v; O
responseObject.getJSONObject("response").getJSONObject("responseBody").put("respCode", "0");- ^/ m# O l; X; ]+ A$ R
responseObject.getJSONObject("response").getJSONObject("responseBody").put("respDesc", e.getMessage() + ExceptionUtils.getStackTrace(e.fillInStackTrace()));/ c3 r0 s5 n5 i( }: a9 B0 C: g
} finally {
/ [1 V# U/ y7 {( Y: H* G return responseObject;
/ z: ]% a3 w& c& b3 A8 ]( P }} catch (Exception e) {
+ I* ?6 R: `; v$ g4 J" T log.error("{}[{}]", e.getMessage(), e);
4 U& k- Z# z; Y3 l responseObject.getJSONObject("response").getJSONObject("responseBody").put("respCode", "0");
: z+ v# n; _$ c, ~' j" f responseObject.getJSONObject("response").getJSONObject("responseBody").put("respDesc", e.getMessage() + ExceptionUtils.getStackTrace(e.fillInStackTrace()));
- ?, V5 m; @' U9 I) [/ i } finally {4 h1 }' c S& O( X7 w o
return responseObject;1 ]9 ^$ }" x* I9 D
} |
|