/** * Compares the input exception with the expected exception * If they match, then the test passes. Otherwise, the test fails */ protected TestReport handleException(Exception e) { if (!isMatch(e.getClass(), expectedExceptionClass)) { TestReport report = reportError(ERROR_UNEXPECTED_EXCEPTION); report.addDescriptionEntry(ENTRY_KEY_UNEXPECTED_EXCEPTION, e.getClass().getName()); report.addDescriptionEntry(ENTRY_KEY_EXPECTED_EXCEPTION, expectedExceptionClass); return report; } else { if (!ERROR_CODE_NO_CHECK.equals(expectedErrorCode) && e instanceof BridgeException) { if ( !expectedErrorCode.equals(((BridgeException)e).getCode()) ) { TestReport report = reportError(ERROR_UNEXPECTED_ERROR_CODE); report.addDescriptionEntry(ENTRY_KEY_UNEXPECTED_ERROR_CODE, ((BridgeException)e).getCode()); report.addDescriptionEntry(ENTRY_KEY_EXPECTED_ERROR_CODE, expectedErrorCode); return report; } } return reportSuccess(); } }
if (ERR_URI_UNSECURE.equals(e.getCode())) { ctx.getUserAgent().displayError(e);
if (ERR_URI_UNSECURE.equals(e.getCode())) { ctx.getUserAgent().displayError(e);
if (ERR_URI_UNSECURE.equals(e.getCode())) { ctx.getUserAgent().displayError(e);
refElement = ctx.getReferencedElement(altGlyphElement, uri); } catch (BridgeException e) { if (ERR_URI_UNSECURE.equals(e.getCode())) { ctx.getUserAgent().displayError(e);
refElement = ctx.getReferencedElement(altGlyphElement, uri); } catch (BridgeException e) { if (ERR_URI_UNSECURE.equals(e.getCode())) { ctx.getUserAgent().displayError(e);
refElement = ctx.getReferencedElement(altGlyphElement, uri); } catch (BridgeException e) { if (ERR_URI_UNSECURE.equals(e.getCode())) { ctx.getUserAgent().displayError(e);
if (ERR_URI_UNSECURE.equals(ex.getCode())) ctx.getUserAgent().displayError(ex); } catch (Exception ex) {
if (!ERR_URI_BAD_TARGET.equals(be.getCode())) { throw be;
if (!ERR_URI_BAD_TARGET.equals(be.getCode())) { throw be;
if (!ERR_URI_BAD_TARGET.equals(be.getCode())) { throw be;
if (ERR_URI_UNSECURE.equals(ex.getCode())) ctx.getUserAgent().displayError(ex); } catch (Exception ex) {
if (ERR_URI_UNSECURE.equals(ex.getCode())) ctx.getUserAgent().displayError(ex); } catch (Exception ex) {