A container class for catch/finally logic.
Pass a different value for rethrow if you want to probably unwisely allow catching control exceptions and other throwables which the rest of the world may expect to get through.
- Type Params
result type of bodies used in try and catch blocks
- Value Params
Finally logic which if defined will be invoked after catch logic
Partial function used when applying catch logic to determine result value
Predicate on throwables determining when to rethrow a caught Throwable