We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59ea439 commit 85fc8b0Copy full SHA for 85fc8b0
inlong-tubemq/tubemq-core/src/main/java/org/apache/inlong/tubemq/corerpc/utils/MixUtils.java
@@ -75,7 +75,7 @@ public static Throwable unwrapException(String exceptionMsg) {
75
if (strExceptionMsgSet.length > 0) {
76
if (!TStringUtils.isBlank(strExceptionMsgSet[0])) {
77
Class clazz = Class.forName(strExceptionMsgSet[0]);
78
- if (clazz != null) {
+ if (clazz != null && Throwable.class.isAssignableFrom(clazz)) {
79
Constructor<?> ctor = clazz.getConstructor(String.class);
80
if (ctor != null) {
81
if (strExceptionMsgSet.length == 1) {
0 commit comments