public static BooleanSupplier softenBooleanSupplier ( final CheckedBooleanSupplier s ) { return ( ) -> { try { return s . getAsBoolean ( ) ; } catch ( final Throwable e ) { throw throwSoftenedException ( e ) ; } } ; }
Soften a BooleanSuppler that throws a checked exception into one that still throws the exception but doesn t need to declare it .