parent
bce53c6e16
commit
9342bbc9a2
|
@ -68,15 +68,15 @@ public class GlobalExceptionHandler {
|
||||||
if (ex instanceof SecurityProtocolException) {
|
if (ex instanceof SecurityProtocolException) {
|
||||||
return ProtocolRespDTO.result(ErrorCode.ERR_PARAMEXCEPTION,
|
return ProtocolRespDTO.result(ErrorCode.ERR_PARAMEXCEPTION,
|
||||||
ErrorCode.ERR_PARAMEXCEPTION.getHttpCode(),
|
ErrorCode.ERR_PARAMEXCEPTION.getHttpCode(),
|
||||||
new String[]{((SecurityProtocolException) ex).getErr().getMsg()});
|
new String[]{((SecurityProtocolException) ex).getErr().getMsg(), ex.getMessage()});
|
||||||
} else if (ex instanceof ControllerNotSupportException) {
|
} else if (ex instanceof ControllerNotSupportException) {
|
||||||
return ProtocolRespDTO.result(ErrorCode.ERR_PARAMEXCEPTION,
|
return ProtocolRespDTO.result(ErrorCode.ERR_PARAMEXCEPTION,
|
||||||
ErrorCode.ERR_PARAMEXCEPTION.getHttpCode(),
|
ErrorCode.ERR_PARAMEXCEPTION.getHttpCode(),
|
||||||
new String[]{((ControllerNotSupportException) ex).getErr().getMsg()});
|
new String[]{((ControllerNotSupportException) ex).getErr().getMsg(), ex.getMessage()});
|
||||||
} else {
|
} else {
|
||||||
return ProtocolRespDTO.result(ErrorCode.ERR_PARAMEXCEPTION,
|
return ProtocolRespDTO.result(ErrorCode.ERR_PARAMEXCEPTION,
|
||||||
ErrorCode.ERR_PARAMEXCEPTION.getHttpCode(),
|
ErrorCode.ERR_PARAMEXCEPTION.getHttpCode(),
|
||||||
new String[]{ErrorCode.ERR_PARAMEXCEPTION.getMsg()});
|
new String[]{ErrorCode.ERR_PARAMEXCEPTION.getMsg(), ex.getMessage()});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue