Searched refs:FooException (Results 1 – 3 of 3) sorted by relevance
44 private static final class FooException extends Exception {} class in CheckedProvidersTest48 Object get() throws FooException; in get()53 CheckedProviders.throwing(FooCheckedProvider.class, FooException.class); in testThrowingCheckedProviderClass_get_throwsException()57 } catch (FooException expected) { in testThrowingCheckedProviderClass_get_throwsException()63 CheckedProviders.throwing(TypeLiteral.get(FooCheckedProvider.class), FooException.class); in testThrowingCheckedProviderTypeLiteral_get_throwsException()67 } catch (FooException expected) { in testThrowingCheckedProviderTypeLiteral_get_throwsException()73 T get() throws FooException; in get()
62 public static class FooException extends RuntimeException { class in NullPointerTesterTest77 throw new FooException(); // should catch as failure in staticOneArgThrowsOtherThanNpe()88 throw new FooException(); // ok, as long as it's not NullPointerException in staticOneArgNullableCorrectlyThrowsOtherThanNPE()99 throw new FooException(); // should catch as failure in oneArgThrowsOtherThanNpe()108 throw new FooException(); // ok, as long as it's not NullPointerException in oneArgNullableCorrectlyThrowsOtherThanNPE()241 throw new FooException(); in act()387 throw new FooException(); in doThrow()
206 raise FooException('Exception Message')