增加OA节点异常
This commit is contained in:
parent
b696b514bc
commit
2d27d6b61c
@ -0,0 +1,32 @@
|
||||
package ink.wgink.exceptions;
|
||||
|
||||
import ink.wgink.exceptions.base.SystemException;
|
||||
|
||||
/**
|
||||
* @ClassName: OaNodeException
|
||||
* @Description: OA节点异常
|
||||
* @Author: wanggeng
|
||||
* @Date: 2022/4/7 10:19
|
||||
* @Version: 1.0
|
||||
*/
|
||||
public class OaNodeException extends SystemException {
|
||||
|
||||
public OaNodeException() {
|
||||
}
|
||||
|
||||
public OaNodeException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public OaNodeException(String message, boolean withMsg) {
|
||||
super(message, withMsg);
|
||||
}
|
||||
|
||||
public OaNodeException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
public OaNodeException(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
}
|
@ -86,7 +86,8 @@ public class ErrorResult implements Serializable {
|
||||
DEVICE_VERSION_ERROR(40502, "设备版本错误"),
|
||||
PERMISSION_ERROR(40601, "权限错误"),
|
||||
REMOTE_REQUEST_EXCEPTION(40701, "远程请求错误"),
|
||||
REMOTE_RESPONSE_EXCEPTION(40702, "远程响应错误");
|
||||
REMOTE_RESPONSE_EXCEPTION(40702, "远程响应错误"),
|
||||
OA_NODE_EXCEPTION(40801, "OA节点异常");
|
||||
|
||||
|
||||
private int value;
|
||||
|
@ -77,6 +77,8 @@ public class ResponseAdvice {
|
||||
response.setStatus(ErrorResult.ErrorResultCodeEnum.REMOTE_REQUEST_EXCEPTION.getValue());
|
||||
} else if (e instanceof RemoteResponseException) {
|
||||
response.setStatus(ErrorResult.ErrorResultCodeEnum.REMOTE_RESPONSE_EXCEPTION.getValue());
|
||||
} else if (e instanceof OaNodeException) {
|
||||
response.setStatus(ErrorResult.ErrorResultCodeEnum.OA_NODE_EXCEPTION.getValue());
|
||||
}
|
||||
// 自定义提示信息
|
||||
if (e instanceof SystemException) {
|
||||
|
Loading…
Reference in New Issue
Block a user