ThrowingLongToIntFunction function ( Class < ? extends RuntimeException > arg0 ) { Contract . checkArgument ( arg0 != null , "srini_string" ) ; return argument -> { try { return applyAsIntThrowing ( argument ) ; } catch ( Exception loc0 ) { throw ReflectionUtils . createException ( arg0 , loc0 ) ; } } ; }
returns a throwinglongtointfunction throwing an exception of the given type if this function throws an exception.the original exception thrown by this function is the throwable #getcause cause of the thrown exception.the exception class must have a constructor accepting a single throwable as an argument . concode_field_sep PlaceHolder placeHolder concode_field_sep int applyAsInt concode_elem_sep int applyAsIntThrowing concode_elem_sep ThrowingLongToIntFunction orTryWith concode_elem_sep ThrowingLongToIntFunction orTryWith concode_elem_sep LongToIntFunction fallbackTo concode_elem_sep LongToIntFunction fallbackTo concode_elem_sep LongToIntFunction orReturn concode_elem_sep LongToIntFunction orReturn