Skip to content

Commit 85fc8b0

Browse files
gosonzhanggosonzhang
and
gosonzhang
authored
[INLONG-9613][TubeMQ] Adjust FATAL type error return content, without carrying class name (#10251)
Co-authored-by: gosonzhang <gosonzhang@tencent.com>
1 parent 59ea439 commit 85fc8b0

File tree

1 file changed

+1
-1
lines changed
  • inlong-tubemq/tubemq-core/src/main/java/org/apache/inlong/tubemq/corerpc/utils

1 file changed

+1
-1
lines changed

inlong-tubemq/tubemq-core/src/main/java/org/apache/inlong/tubemq/corerpc/utils/MixUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static Throwable unwrapException(String exceptionMsg) {
7575
if (strExceptionMsgSet.length > 0) {
7676
if (!TStringUtils.isBlank(strExceptionMsgSet[0])) {
7777
Class clazz = Class.forName(strExceptionMsgSet[0]);
78-
if (clazz != null) {
78+
if (clazz != null && Throwable.class.isAssignableFrom(clazz)) {
7979
Constructor<?> ctor = clazz.getConstructor(String.class);
8080
if (ctor != null) {
8181
if (strExceptionMsgSet.length == 1) {

0 commit comments

Comments
 (0)