|
发表于 2020-4-17 23:17:28
|
显示全部楼层
} catch (Exception e) {
# ^1 Y9 v* q# \ W/ p8 S log.error("{}[{}]", e.getMessage(), e);; U2 Y! w) q" b5 i+ p. U
responseObject.getJSONObject("response").getJSONObject("responseBody").put("respCode", "0");
7 k8 o' k# z) B' E# k responseObject.getJSONObject("response").getJSONObject("responseBody").put("respDesc", e.getMessage() + ExceptionUtils.getStackTrace(e.fillInStackTrace()));
* J' J2 N- Y5 s6 h4 f+ w P, v } finally {
: w6 ?: N! h5 r, d2 L. k n9 x return responseObject;/ d6 M4 d2 V/ ?9 ~ v# W% q( q& Q
}} catch (Exception e) {* h; k5 B1 U) f2 T1 {
log.error("{}[{}]", e.getMessage(), e);
3 i3 F/ n: p0 c( N responseObject.getJSONObject("response").getJSONObject("responseBody").put("respCode", "0");4 e; c8 j! C* H4 E
responseObject.getJSONObject("response").getJSONObject("responseBody").put("respDesc", e.getMessage() + ExceptionUtils.getStackTrace(e.fillInStackTrace()));* d: g3 M) ?( d6 O% B# H+ r
} finally {* A1 q: Q5 p# C% D
return responseObject;8 q% Z W6 z$ f% a4 t& ?3 Y
}} catch (Exception e) {
( L+ \, i* t3 ~ log.error("{}[{}]", e.getMessage(), e);
% w2 }" w, [( m, L, H+ k6 Q1 x. ] responseObject.getJSONObject("response").getJSONObject("responseBody").put("respCode", "0");
1 g/ s% t6 g! V% [& M6 P2 \ responseObject.getJSONObject("response").getJSONObject("responseBody").put("respDesc", e.getMessage() + ExceptionUtils.getStackTrace(e.fillInStackTrace()));/ I" E+ U5 k! O; ^1 X. D
} finally {* @' k+ b8 t1 o2 z Y( w3 u1 ^/ }
return responseObject;) e0 k; ^" @5 X/ f! b
} |
|