Home | History | Annotate | Download | only in base

Lines Matching defs:Throwables

19 import static com.google.common.base.Throwables.getStackTraceAsString;
32 * Unit test for {@link Throwables}.
43 Throwables.propagateIfPossible(t);
59 Throwables.propagateIfPossible(t);
79 Throwables.propagateIfPossible(t);
102 Throwables.propagateIfPossible(t, SomeCheckedException.class);
119 Throwables.propagateIfPossible(t, SomeCheckedException.class);
139 Throwables.propagateIfPossible(t, SomeCheckedException.class);
160 Throwables.propagateIfPossible(t, SomeCheckedException.class);
182 Throwables.propagateIfPossible(t, SomeCheckedException.class,
201 Throwables.propagateIfPossible(t, SomeCheckedException.class,
224 Throwables.propagateIfPossible(t, SomeCheckedException.class,
247 Throwables.propagateIfPossible(t, SomeCheckedException.class,
263 Throwables.propagateIfPossible(null);
264 Throwables.propagateIfPossible(null, SomeCheckedException.class);
265 Throwables.propagateIfPossible(null, SomeCheckedException.class,
275 throw Throwables.propagate(t);
290 throw Throwables.propagate(t);
309 throw Throwables.propagate(t);
328 throw Throwables.propagate(t);
349 Throwables.propagateIfInstanceOf(t, SomeCheckedException.class);
350 throw Throwables.propagate(t);
365 Throwables.propagateIfInstanceOf(t, SomeCheckedException.class);
366 throw Throwables.propagate(t);
386 Throwables.propagateIfInstanceOf(t, SomeCheckedException.class);
387 throw Throwables.propagate(t);
407 Throwables.propagateIfInstanceOf(t, SomeCheckedException.class);
408 throw Throwables.propagate(t);
423 Throwables.propagateIfInstanceOf(null, SomeCheckedException.class);
428 assertSame(exception, Throwables.getRootCause(exception));
434 assertSame(cause, Throwables.getRootCause(exception));
441 assertSame(cause, Throwables.getRootCause(exception));
501 assertEquals(asList(ex, re, iae, fnfe), Throwables.getCausalChain(ex));
502 assertSame(fnfe, Iterables.getOnlyElement(Throwables.getCausalChain(fnfe)));
504 Throwables.getCausalChain(null);
509 List<Throwable> causes = Throwables.getCausalChain(ex);
518 new NullPointerTester().testAllPublicStaticMethods(Throwables.class);