google-nomulus/java/google/registry/model/tmch
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
..
ClaimsListShard.java Fix checkState failing to trigger retrier's retry 2018-12-12 13:22:34 -05:00
TmchCrl.java Replace many Work and VoidWork usages with lambdas 2017-11-21 18:45:12 -05:00