Searched refs:SampleException (Results 1 – 5 of 5) sorted by relevance
56 public String call() throws InterruptedException, SampleException {58 throw new SampleException();133 } catch (SampleException expected) { in testNewProxy_badMethodWithEnoughTime()175 assertThat(expected.getCause()).isInstanceOf(SampleException.class); in testCallWithTimeout_badCallableWithEnoughTime()201 assertThat(expected.getCause()).isInstanceOf(SampleException.class); in testCallUninterruptiblyWithTimeout_badCallableWithEnoughTime()258 void sleepThenThrowException() throws SampleException; in sleepThenThrowException()262 private static class SampleException extends Exception {} class in SimpleTimeLimiterTest287 public void sleepThenThrowException() throws SampleException { in sleepThenThrowException()292 throw new SampleException(); in sleepThenThrowException()
13 class SampleException(Exception): pass class25 with self.assertRaises(SampleException):28 raise SampleException()
432 class SampleException(Exception): class435 vals = [1, SampleException("foo")]439 with self.assertRaises(SampleException) as e:
17 class SampleException(Exception): pass class29 with self.assertRaises(SampleException):32 raise SampleException()