ThrowingDoubleConsumer function ( Class < ? extends RuntimeException > arg0 , String arg1 ) { Contract . checkArgument ( arg0 != null , "srini_string" ) ; return argument -> { try { acceptThrowing ( argument ) ; } catch ( Exception loc0 ) { throw ReflectionUtils . createException ( arg0 , arg1 , loc0 ) ; } } ; }
returns a throwingdoubleconsumer throwing an exception of the given type if this operation throws an exception.the original exception thrown by this operation is the throwable #getcause cause of the thrown exception.the exception class must have a constructor accepting string and throwable as arguments . concode_field_sep PlaceHolder placeHolder concode_field_sep ThrowingDoubleConsumer orTryWith concode_elem_sep ThrowingDoubleConsumer orTryWith concode_elem_sep void acceptThrowing concode_elem_sep DoubleConsumer fallbackTo concode_elem_sep DoubleConsumer fallbackTo concode_elem_sep void accept