Skip to content

Commit 7e16744

Browse files
author
Sanchit Garg
committed
PLUGIN-1823: Revert exception message update for causes that are instances of RuntimeException
1 parent 40ff60a commit 7e16744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database-commons/src/main/java/io/cdap/plugin/util/RetryUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private static RuntimeException unwrapFailsafeException(Exception e,
104104
if (cause instanceof SQLException) {
105105
return dbErrorDetailsProvider.getProgramFailureException((SQLException) cause, null);
106106
} else if (cause instanceof RuntimeException) {
107-
return new RuntimeException("Operation failed with error", cause);
107+
return (RuntimeException) cause;
108108
} else if (cause instanceof Error) {
109109
return new RuntimeException("Operation failed with error", cause);
110110
} else {

0 commit comments

Comments
 (0)