Commit 772cd2a
Preserve SerializableError in CachedError for proper error handling (#77)
* Preserve SerializableError in CachedError for proper error handling
Add serializableError field to CachedError to preserve exception type
information from cached idempotent requests. This enables consumers to
properly handle cached errors based on the original exception type.
Breaking change: CachedError constructor signature now requires
serializableError parameter.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* Fix IdempotencyHandlerTest to use new CachedError constructor
Update test assertions to construct CachedError with SerializableError
parameter after adding serializableError field to CachedError data class.
---------
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 3095334 commit 772cd2a
File tree
2 files changed
+16
-4
lines changed- common/src/main/kotlin/xyz/block/bittycity/common/idempotency
- outie/src/test/kotlin/xyz/block/bittycity/outie/controllers
2 files changed
+16
-4
lines changedLines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
93 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
94 | 99 | | |
95 | 100 | | |
96 | 101 | | |
| |||
515 | 520 | | |
516 | 521 | | |
517 | 522 | | |
518 | | - | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
519 | 528 | | |
520 | 529 | | |
521 | 530 | | |
| |||
0 commit comments