public String getMessage() { return e.getMessage(); }
userArgs = new ParseArgs().parse(args); } catch (XProcException xe) { System.err.println(xe.getMessage()); usage(); logger.error(errorMessage(err.getErrorCode())); } else { logger.error(err.getMessage()); logger.debug(err.getMessage(), err); } catch (Exception err) { exitStatus = 1;
userArgs = new ParseArgs().parse(args); } catch (XProcException xe) { System.err.println(xe.getMessage()); usage(); logger.error(errorMessage(err.getErrorCode())); } else { logger.error(err.getMessage()); logger.debug(err.getMessage(), err); } catch (Exception err) { exitStatus = 1;
xpipeline.run(); } catch (XProcException e) { logger.debug(e.getMessage(), e); throw e; } catch (Throwable e) {
xpipeline.run(); } catch (XProcException e) { logger.debug(e.getMessage(), e); throw e; } catch (Throwable e) {
userArgs = new ParseArgs().parsePiperack(args); } catch (XProcException xe) { System.err.println(xe.getMessage()); System.exit(-1);
userArgs = new ParseArgs().parsePiperack(args); } catch (XProcException xe) { System.err.println(xe.getMessage()); System.exit(-1);
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 xxx = (XProcException) xe; QName code = xxx.getErrorCode(); message = xxx.getMessage(); Throwable underlying = xe.getCause(); if (underlying != null) {
private XProcException rebaseOnto(final Step step, SourceLocator[] base) { final QName error = this.getErrorCode(); final String message = this.getMessage(); final XdmNode node = this.getNode(); final SourceLocator[] location; {