2024-04-07 18:23:25 +08:00
|
|
|
package com.zhgd.jeecg.common.execption;
|
2023-08-17 18:10:07 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2024-04-07 18:23:25 +08:00
|
|
|
* 提示code=200异常
|
2023-08-17 18:10:07 +08:00
|
|
|
*/
|
2024-04-07 18:23:25 +08:00
|
|
|
public class OpenPromptException extends RuntimeException {
|
2023-08-17 18:10:07 +08:00
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
private final String message;
|
|
|
|
|
private Object result;
|
|
|
|
|
|
2024-04-07 18:23:25 +08:00
|
|
|
public OpenPromptException(String message) {
|
2023-08-17 18:10:07 +08:00
|
|
|
this.message = message;
|
|
|
|
|
}
|
|
|
|
|
|
2024-04-07 18:23:25 +08:00
|
|
|
public OpenPromptException(String message, Object result) {
|
2023-08-17 18:10:07 +08:00
|
|
|
this.message = message;
|
|
|
|
|
this.result = result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getMessage() {
|
|
|
|
|
return message;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Object getResult() {
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setResult(Object result) {
|
|
|
|
|
this.result = result;
|
|
|
|
|
}
|
|
|
|
|
}
|