1
0
mirror of https://github.com/google/nomulus synced 2026-01-11 08:20:27 +00:00
Files
nomulus/java/google/registry/model
guyben 4dad0a8a73 Fix checkState failing to trigger retrier's retry
We have a retrier wanting to call a function, retrying on
IllegalStateExceptions (thrown by checkState()).

However, one of the checkStates is called inside a Concurrent.transform, so
when the checkState fails, the resulting IllegalStateException is wrapped in an
UncheckedExecutionException and isn't caught by the retrier.

We unwrap the IllegalStateException to make sure it's caught.

Q: Why not just catch UncheckedExecution exception?
A: Because it might wrap a different exception which we don't want to retry on.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=224862573
2018-12-12 13:22:34 -05:00
..
2018-06-27 15:28:52 -04:00
2017-12-01 22:14:06 -05:00
2018-08-10 13:44:25 -04:00
2017-12-27 11:40:50 -05:00