@Test public void guard() { String expected = "expected"; String actual = Exceptions.guard( () -> expected ).with( IllegalArgumentException.class ); assertThat( actual ).isEqualTo( expected ); }
public static <V> Exceptions<V> guard( Callable<V> callable ) { return new Exceptions<>( callable ); }
Exceptions { public static <V> Exceptions<V> guard( Callable<V> callable ) { return new Exceptions<>( callable ); } }
Exceptions { public static <V> Exceptions<V> guard( Callable<V> callable ) { return new Exceptions<>( callable ); } private  Exceptions( Callable<V> callable ); }
Exceptions { public static <V> Exceptions<V> guard( Callable<V> callable ) { return new Exceptions<>( callable ); } private  Exceptions( Callable<V> callable ); static Exceptions<V> guard( Callable<V> callable ); V with( Class<T> targetType ); }
Exceptions { public static <V> Exceptions<V> guard( Callable<V> callable ) { return new Exceptions<>( callable ); } private  Exceptions( Callable<V> callable ); static Exceptions<V> guard( Callable<V> callable ); V with( Class<T> targetType );  }