Searched refs:thrown (Results 1 – 3 of 3) sorted by relevance
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()
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); 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); in checkError()36 thrown = thrown.getCause(); in checkError()38 if (!expectedErrorClass.equals(thrown.getClass())) { in checkError()39 thrown.printStackTrace(System.err); in checkError()[all …]
56837 private java.lang.Throwable thrown