case classPartialFunctionToExceptionExtractor(passThroughExceptionHandler: PartialFunction[Throwable, Throwable]) extends Product with Serializable
This works similar to .filter.map(), i.e. for exceptions that we want to pass through
(the ones for which a partial function is defined) we apply it, thus getting .map() behavior
Exceptions that are not explicitly handled here are 'generic IO exceptions' eligible for
retry and eligible to be wrapped with additional user message.
OTOH the ones that match we need to preserve 'as is', no retries, should be passed
to caller unmodified.
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
This works similar to .filter.map(), i.e. for exceptions that we want to pass through (the ones for which a partial function is defined) we apply it, thus getting .map() behavior
Exceptions that are not explicitly handled here are 'generic IO exceptions' eligible for retry and eligible to be wrapped with additional user message.
OTOH the ones that match we need to preserve 'as is', no retries, should be passed to caller unmodified.