Searched refs:thrown (Results 1 – 4 of 4) sorted by relevance
25 private static void checkError(Class<?> expectedErrorClass, Throwable thrown, in checkError() argument27 if (expectedErrorClass != null && thrown == null) { in checkError()29 } else if (expectedErrorClass == null && thrown != null) { in checkError()30 fail("Unexpected error " + thrown, thrown); in checkError()31 } else if (expectedErrorClass != null && thrown != null) { in checkError()33 if (!(thrown instanceof java.lang.reflect.InvocationTargetException)) { in checkError()34 fail("Expected invocation target exception, but got " + thrown, thrown); in checkError()36 thrown = thrown.getCause(); in checkError()38 if (!expectedErrorClass.equals(thrown.getClass())) { in checkError()40 thrown.getClass(), thrown); in checkError()
23 private static void checkError(Class<?> expectedErrorClass, Throwable thrown, in checkError() argument25 if (expectedErrorClass != null && thrown == null) { in checkError()27 } else if (expectedErrorClass == null && thrown != null) { in checkError()28 fail("Unexpected error " + thrown); in checkError()29 } else if (expectedErrorClass != null && thrown != null) { in checkError()31 if (!(thrown instanceof java.lang.reflect.InvocationTargetException)) { in checkError()32 fail("Expected invocation target exception, but got " + thrown); in checkError()34 thrown = thrown.getCause(); in checkError()36 if (!expectedErrorClass.equals(thrown.getClass())) { in checkError()38 thrown.getClass()); in checkError()
82 final Throwable[] thrown = new Throwable[1]; in runOnMainThread() local90 thrown[0] = t; in runOnMainThread()100 if (thrown[0] != null) { in runOnMainThread()101 throw thrown[0]; in runOnMainThread()
317 // Captures an exception thrown during the test.