Commit 2440d2fc authored by jiaorz's avatar jiaorz

Merge branch 'master-vehicle-bug' into dev

parents f0034da0 74de1a65
...@@ -38,7 +38,7 @@ public class PlatformExceptionHandler { ...@@ -38,7 +38,7 @@ public class PlatformExceptionHandler {
@ExceptionHandler(value = {BaseException.class}) @ExceptionHandler(value = {BaseException.class})
public BaseResponse baseExceptionHandler(Exception e) { public BaseResponse baseExceptionHandler(Exception e) {
if (e instanceof BaseException){ if (e instanceof BaseException){
BaseException be = (BaseException) e; BaseException be = (BaseException) e;
return new BaseResponse(be.getStatus(), StringUtils.isEmpty(be.getSubCode())?"NAN":be.getSubCode(), be.getMessage()); return new BaseResponse(be.getStatus(), StringUtils.isEmpty(be.getSubCode())?"NAN":be.getSubCode(), be.getMessage());
} }
return new BaseResponse(400,e.getMessage()); return new BaseResponse(400,e.getMessage());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment