pub fn should_throw<R, F: FnOnce() -> Result<R>>(f: F) -> Result<R>
Pass only if callback fails either returning error or panicing.