From 5bf42aa9950058f391805e6fb8d7376f4378924b Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期一, 23 十二月 2024 16:16:55 +0800 Subject: [PATCH] cumulateHandle.getCurrent --- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/common/exception/ModelResultErrorException.java | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 51 insertions(+), 0 deletions(-) diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/common/exception/ModelResultErrorException.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/common/exception/ModelResultErrorException.java new file mode 100644 index 0000000..99bfe58 --- /dev/null +++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/common/exception/ModelResultErrorException.java @@ -0,0 +1,51 @@ +package com.iailab.module.model.common.exception; + +/** + * 模型结果错误异常 + */ +public class ModelResultErrorException extends RuntimeException { + private static final long serialVersionUID = 1L; + + private String msg; + private int code = 200; + + public ModelResultErrorException(String msg) { + super(msg); + this.msg = msg; + } + + public ModelResultErrorException(String msg, Throwable e) { + super(msg, e); + this.msg = msg; + } + + public ModelResultErrorException(String msg, int code) { + super(msg); + this.msg = msg; + this.code = code; + } + + public ModelResultErrorException(String msg, int code, Throwable e) { + super(msg, e); + this.msg = msg; + this.code = code; + } + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + +} -- Gitblit v1.9.3