kongzy
2024-09-23 d015cc0b48ca51a2b93b6c60c91dc352a104b1e7
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;
    }