|
发表于 2020-4-17 23:18:00
|
显示全部楼层
} catch (Exception e) {' y* p1 }0 @0 Y# W
log.error("{}[{}]", e.getMessage(), e);8 C- E7 y0 k' ~4 i3 E; y
responseObject.getJSONObject("response").getJSONObject("responseBody").put("respCode", "0");
2 R5 y" x) S% A- E8 t responseObject.getJSONObject("response").getJSONObject("responseBody").put("respDesc", e.getMessage() + ExceptionUtils.getStackTrace(e.fillInStackTrace()));) R9 F4 I. d3 @& | O- S4 c% Q
} finally { j# y8 y. f6 ]1 L; R2 Q `
return responseObject;4 Y) {) d4 a' ~: [3 V j1 c
}} catch (Exception e) {3 v# `* I- T2 {" S1 ?
log.error("{}[{}]", e.getMessage(), e);, K1 G* {2 z$ z& s1 E
responseObject.getJSONObject("response").getJSONObject("responseBody").put("respCode", "0");0 F$ o5 n( s' J' Z' A7 d1 @4 o
responseObject.getJSONObject("response").getJSONObject("responseBody").put("respDesc", e.getMessage() + ExceptionUtils.getStackTrace(e.fillInStackTrace()));4 ^. T+ \& h, y# S
} finally {
+ m* x! w$ P8 e! t& W2 s5 X6 d return responseObject;4 V" t! x4 l. Z+ m' P/ z1 a! B
} |
|