public static < T > Supplier < T > softenCallable ( final Callable < T > s ) { return ( ) -> { try { return s . call ( ) ; } catch ( final Throwable e ) { throw throwSoftenedException ( e ) ; } } ; }
Soften a Callable that throws a ChecekdException into a Supplier