|
|
@@ -2,6 +2,7 @@ package com.sckw.core.exception;
|
|
|
|
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson2.annotation.JSONType;
|
|
|
import com.sckw.core.common.enums.enums.ErrorCodeEnum;
|
|
|
import lombok.Data;
|
|
|
|
|
|
@@ -11,7 +12,7 @@ import lombok.Data;
|
|
|
* @Description: 异常
|
|
|
* @Version: 1.0
|
|
|
*/
|
|
|
-
|
|
|
+@JSONType(includes = {"errorCode", "errorMsg", "message"})
|
|
|
@Data
|
|
|
public class BusinessPlatfromException extends RuntimeException {
|
|
|
|
|
|
@@ -23,6 +24,11 @@ public class BusinessPlatfromException extends RuntimeException {
|
|
|
private String errorMsg;
|
|
|
|
|
|
|
|
|
+ public BusinessPlatfromException() {
|
|
|
+ super();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 构造函数
|
|
|
* @param errorCodeEnum 错误码
|