修改告警提示
This commit is contained in:
parent
665220df35
commit
7435327f8c
@ -4,12 +4,15 @@ package com.das.common.exceptions;
|
||||
import com.das.common.result.IResultCode;
|
||||
import com.das.common.result.ResultCode;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* @author chenhaojie
|
||||
* @Description oss存储服务异常
|
||||
*/
|
||||
public class OssException extends RuntimeException {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private int code = ResultCode.FAILURE.getCode();
|
||||
|
@ -3,13 +3,18 @@ package com.das.common.exceptions;
|
||||
|
||||
import com.das.common.result.IResultCode;
|
||||
import com.das.common.result.ResultCode;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* @author chenhaojie
|
||||
* @Description 频率限制异常
|
||||
*/
|
||||
@Getter
|
||||
public class RateLimiterException extends RuntimeException {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private int code = ResultCode.FAILURE.getCode();
|
||||
@ -46,18 +51,10 @@ public class RateLimiterException extends RuntimeException {
|
||||
super(cause);
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
@ -3,13 +3,18 @@ package com.das.common.exceptions;
|
||||
|
||||
import com.das.common.result.IResultCode;
|
||||
import com.das.common.result.ResultCode;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* @author chenhaojie
|
||||
* @Description 频率限制异常
|
||||
*/
|
||||
@Getter
|
||||
public class RepeatSubmitException extends RuntimeException {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private int code = ResultCode.FAILURE.getCode();
|
||||
@ -46,18 +51,10 @@ public class RepeatSubmitException extends RuntimeException {
|
||||
super(cause);
|
||||
}
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getMsg() {
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setMsg(String msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user