public Runnable wrap ( Throwing . Runnable runnable ) { return ( ) -> { try { runnable . run ( ) ; } catch ( Throwable e ) { handler . accept ( e ) ; } } ; }
Returns a Runnable whose exceptions are handled by this Errors .