Lines Matching refs:exception
8 * particular file as subject to the "Classpath" exception as provided
1196 throw new RuntimeException("failed to catch NPE exception"+(caughtEx == null ? " (caughtEx=null)" : ""), caughtEx);
1197 caughtEx = null; // nullify expected exception
1200 throw new RuntimeException("unexpected exception", caughtEx);
1386 throw new RuntimeException("failed to catch exception for negTest="+negTest);
1387 // test the kind of exception
1396 caughtEx = null; // nullify expected exception
1400 throw new RuntimeException("unexpected exception", caughtEx);
2277 Object throwOrReturn(Object normal, T exception) throws T {
2278 if (exception != null) {
2279 called("throwOrReturn/throw", normal, exception);
2280 throw exception;
2282 called("throwOrReturn/normal", normal, exception);
2333 assertSame("must get the out-of-band exception", thrown, ex);
2346 // catcher also receives the exception, prepended:
2436 // the string value must pass each step without causing an exception
2471 System.out.println(" expected "+(expectFail ? "an exception" : normalRetVal));
2747 assertSame("must pass unchecked exception out without wrapping", ex, ex1);
2749 assertSame("must pass declared exception out without wrapping", ex, ex1);
2751 assertNotSame("must pass undeclared checked exception with wrapping", ex, ex1);
2920 Error err = new InternalError("uncaught exception");