Skip to content

Commit 5bf44d8

Browse files
committed
Re-throw IdempotencyValidationException instead of wrapping in a persistence layer exception.
1 parent 84c0f75 commit 5bf44d8

File tree

1 file changed

+2
-0
lines changed
  • powertools-idempotency/powertools-idempotency-core/src/main/java/software/amazon/lambda/powertools/idempotency/internal

1 file changed

+2
-0
lines changed

powertools-idempotency/powertools-idempotency-core/src/main/java/software/amazon/lambda/powertools/idempotency/internal/IdempotencyHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ private Object processIdempotency() throws Throwable {
109109
}
110110
} catch (IdempotencyKeyException ike) {
111111
throw ike;
112+
} catch (IdempotencyValidationException ive) {
113+
throw ive;
112114
} catch (Exception e) {
113115
throw new IdempotencyPersistenceLayerException(
114116
"Failed to save in progress record to idempotency store. If you believe this is a Powertools for AWS Lambda (Java) bug, please open an issue.",

0 commit comments

Comments
 (0)