| | |
| | | |
| | | 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 { |
| | |
| | | this.message = error.getDesc(); |
| | | } |
| | | |
| | | public TargetDutyException(String message) { |
| | | super(message); |
| | | this.code = "A3000"; |
| | | } |
| | | |
| | | public TargetDutyException(String code, String message) { |
| | | super(message); |
| | | this.code = code; |
| | | this.message = message; |
| | | } |
| | | |
| | | public TargetDutyException(ResultCodes clientParamIllegal) { |
| | | super(clientParamIllegal.getDesc()); |
| | | this.code = clientParamIllegal.getCode(); |
| | | this.message = clientParamIllegal.getDesc(); |
| | | } |
| | | |
| | | public String getCode() { |
| | | return this.code; |
| | | } |