public String getCode() { if (e.getErrorCode() != null) return e.getErrorCode().toString(); else return null; }
public void catchException(Throwable t) { while (t != null) { if (t.getMessage() != null) { errorMessages.add(t.getMessage()); } else { errorMessages.add(t.toString()); } if (t instanceof XProcException) { XProcException xe = (XProcException) t; actualError = xe.getErrorCode(); return; } else { t = t.getCause(); } } }
public void catchException(Throwable t) { while (t != null) { if (t.getMessage() != null) { errorMessages.add(t.getMessage()); } else { errorMessages.add(t.toString()); } if (t instanceof XProcException) { XProcException xe = (XProcException) t; actualError = xe.getErrorCode(); return; } else { t = t.getCause(); } } }
parse(cnode); } catch (XProcException xe) { if (XProcConstants.dynamicError(11).equals(xe.getErrorCode())) { parse(cnode); } catch (XProcException xe) { if (XProcConstants.dynamicError(11).equals(xe.getErrorCode())) {
} catch (XProcException err) { exitStatus = 1; if (err.getErrorCode() != null) { logger.error(errorMessage(err.getErrorCode())); } else { logger.error(err.getMessage());
} catch (XProcException err) { exitStatus = 1; if (err.getErrorCode() != null) { logger.error(errorMessage(err.getErrorCode())); } else { logger.error(err.getMessage());
if (XProcConstants.dynamicError(11).equals(xe.getErrorCode())) { throw XProcException.staticError(52, node, xe.getCause(), "Cannot import: " + importURI.toASCIIString()); } else {
if (XProcConstants.dynamicError(11).equals(xe.getErrorCode())) { throw XProcException.staticError(52, node, xe.getCause(), "Cannot import: " + importURI.toASCIIString()); } else {
result.fail(xprocex); return result; } else if (xprocex.getErrorCode() != null) { result.catchException(xprocex); result.success(t.error, xprocex.getErrorCode()); return result;
public void run() throws SaxonApiException { super.run(); try { XdmNode doc = runtime.getConfigurer().getXMLCalabashConfigurer().loadDocument(this); result.write(doc); } catch (XProcException e) { logger.debug(e.getMessage(), e); if (err_XD0011.equals(e.getErrorCode())) { RuntimeValue href = getOption(_href); String baseURI = href.getBaseURI().toASCIIString(); boolean validate = getOption(_dtd_validate, false); throw XProcException.stepError(11, "Could not load " + href.getString() + " (" + baseURI + ") dtd-validate=" + validate); } throw e; } catch (Exception e) { throw new XProcException(e); } } }
public void run() throws SaxonApiException { super.run(); try { XdmNode doc = runtime.getConfigurer().getXMLCalabashConfigurer().loadDocument(this); result.write(doc); } catch (XProcException e) { logger.debug(e.getMessage(), e); if (err_XD0011.equals(e.getErrorCode())) { RuntimeValue href = getOption(_href); String baseURI = href.getBaseURI().toASCIIString(); boolean validate = getOption(_dtd_validate, false); throw XProcException.stepError(11, "Could not load " + href.getString() + " (" + baseURI + ") dtd-validate=" + validate); } throw e; } catch (Exception e) { throw new XProcException(e); } } }
XProcException err = (XProcException) exception; loc = err.getLocator()[0]; if (err.getErrorCode() != null) { QName n = err.getErrorCode(); qCode = new StructuredQName(n.getPrefix(),n.getNamespaceURI(),n.getLocalName());
QName code = xxx.getErrorCode(); message = xxx.getMessage(); Throwable underlying = xe.getCause();
XProcException err = (XProcException) exception; loc = err.getLocator(); if (err.getErrorCode() != null) { QName n = err.getErrorCode(); qCode = new StructuredQName(n.getPrefix(),n.getNamespaceURI(),n.getLocalName());
XProcException err = (XProcException) exception; loc = err.getLocator()[0]; if (err.getErrorCode() != null) { QName n = err.getErrorCode(); qCode = new StructuredQName(n.getPrefix(), n.getNamespaceURI(), n.getLocalName());
private XProcException rebaseOnto(final Step step, SourceLocator[] base) { final QName error = this.getErrorCode(); final String message = this.getMessage(); final XdmNode node = this.getNode();
XProcException err = (XProcException) exception; loc = err.getLocator()[0]; if (err.getErrorCode() != null) { QName n = err.getErrorCode(); qCode = new StructuredQName(n.getPrefix(),n.getNamespaceURI(),n.getLocalName());
XProcException err = (XProcException) exception; loc = err.getLocator(); if (err.getErrorCode() != null) { QName n = err.getErrorCode(); qCode = new StructuredQName(n.getPrefix(),n.getNamespaceURI(),n.getLocalName());
XProcException err = (XProcException) exception; loc = err.getLocator()[0]; if (err.getErrorCode() != null) { QName n = err.getErrorCode(); qCode = new StructuredQName(n.getPrefix(), n.getNamespaceURI(), n.getLocalName());
QName code = xxx.getErrorCode(); if (code != null) { qCode = new StructuredQName(code.getPrefix(), code.getNamespaceURI(), code.getLocalName());