Skip to content

Commit 663123c

Browse files
committed
fix: Modify the exception message.
1 parent 58309f2 commit 663123c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-tx/src/main/java/org/springframework/transaction/interceptor/DefaultTransactionAttribute.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ public void resolveAttributeStrings(@Nullable StringValueResolver resolver) {
204204
try {
205205
setTimeout(Integer.parseInt(timeoutString));
206206
}
207-
catch (NumberFormatException ex) {
207+
catch (RuntimeException ex) {
208208
throw new IllegalArgumentException(
209-
"Invalid timeoutString value \"" + timeoutString + "\" - cannot parse into int");
209+
"Invalid timeoutString value \"" + timeoutString + "\": " + ex);
210210
}
211211
}
212212
}

0 commit comments

Comments
 (0)