songhuangfeng123
2022-09-08 bfb4c1e1d4e3f99f74a51ef5b67531f9d91d0dde
goal-manage/goal-manage-service/src/main/java/com/gkhy/safePlatform/targetDuty/excepiton/TargetDutyException.java
@@ -1,6 +1,7 @@
package com.gkhy.safePlatform.targetDuty.excepiton;
import com.gkhy.safePlatform.commons.enums.ResultCodes;
import com.gkhy.safePlatform.targetDuty.enums.TargetDutyResultCodes;
public class TargetDutyException extends RuntimeException {
@@ -24,6 +25,12 @@
        this.message = message;
    }
    public TargetDutyException(ResultCodes clientParamIllegal) {
        super(clientParamIllegal.getDesc());
        this.code = clientParamIllegal.getCode();
        this.message = clientParamIllegal.getDesc();
    }
    public String getCode() {
        return this.code;
    }