3 ms·
> if you don't know what to do with it, they sure won't! Actually no. For instance, the caller at some point up the stack may know if something is worth retryi
by rixed 3y ago
> if you don't know what to do with it, they sure won't!
Actually no.
For instance, the caller at some point up the stack may know if something is worth retrying.
- colanderman 3y agoThen you should unwind your state correctly and rethrow as a checked exception stating as much. If there levels up the stack I see a random unexpected "IO Exception" from your library I have no idea whether you are still in a valid state to retry. If I instead see a "Foolib Request Aborted: reason IO Exception" I know you've written logic to handle that case, and I know that retrying is appropriate.