feat: 添加流水分析API异常类
This commit is contained in:
@@ -0,0 +1,26 @@
|
|||||||
|
package com.ruoyi.lsfx.exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 流水分析平台API异常
|
||||||
|
*/
|
||||||
|
public class LsfxApiException extends RuntimeException {
|
||||||
|
|
||||||
|
private String errorCode;
|
||||||
|
|
||||||
|
public LsfxApiException(String message) {
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
public LsfxApiException(String message, Throwable cause) {
|
||||||
|
super(message, cause);
|
||||||
|
}
|
||||||
|
|
||||||
|
public LsfxApiException(String errorCode, String message) {
|
||||||
|
super(message);
|
||||||
|
this.errorCode = errorCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getErrorCode() {
|
||||||
|
return errorCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user