Skip to content

Commit

Permalink
[INLONG-9613][TubeMQ] Adjust FATAL type error return content, without…
Browse files Browse the repository at this point in the history
… carrying class name (#10251)

Co-authored-by: gosonzhang <gosonzhang@tencent.com>
  • Loading branch information
gosonzhang and gosonzhang committed May 22, 2024
1 parent 59ea439 commit 85fc8b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static Throwable unwrapException(String exceptionMsg) {
if (strExceptionMsgSet.length > 0) {
if (!TStringUtils.isBlank(strExceptionMsgSet[0])) {
Class clazz = Class.forName(strExceptionMsgSet[0]);
if (clazz != null) {
if (clazz != null && Throwable.class.isAssignableFrom(clazz)) {
Constructor<?> ctor = clazz.getConstructor(String.class);
if (ctor != null) {
if (strExceptionMsgSet.length == 1) {
Expand Down

0 comments on commit 85fc8b0

Please sign in to comment.