From e4c05d381d2dadf129b3a4cb499c8ea67e7fc481 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 08 Nov 2021 17:19:47 +0800
Subject: [PATCH] fix
---
zq-erp/src/main/java/com/matrix/core/exception/GlobleException.java | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/zq-erp/src/main/java/com/matrix/core/exception/GlobleException.java b/zq-erp/src/main/java/com/matrix/core/exception/GlobleException.java
index 214bb65..2061d5f 100644
--- a/zq-erp/src/main/java/com/matrix/core/exception/GlobleException.java
+++ b/zq-erp/src/main/java/com/matrix/core/exception/GlobleException.java
@@ -63,6 +63,10 @@
return message;
}
+ public static RuntimeException instance(String msg) {
+ return new GlobleException(msg);
+ }
+
public String getErrorCode() {
return errorCode;
}
--
Gitblit v1.9.1