exception.setLocator(locator);
exception.setLocator(locator);
te.setLocator(this.getLocator()); ErrorListener el = xctxt.getErrorListener(); if(null != el) // defensive, should never happen.
te.setLocator(this.getLocator()); ErrorListener el = xctxt.getErrorListener(); if(null != el) // defensive, should never happen.
te.setLocator(this.getLocator()); ErrorListener el = xctxt.getErrorListener(); if(null != el) // defensive, should never happen.
te.setLocator(this.getLocator()); ErrorListener el = xctxt.getErrorListener(); if(null != el) // defensive, should never happen.
te.setLocator(this); throw te;
te.setLocator(t); throw te;
te.setLocator(t); throw te;
te.setLocator(this); throw te;
te.setLocator(this);
te.setLocator(this);
/** * Create an XPathException object that holds * an error message. * @param message The error message. */ public XPathException(String message, ExpressionNode ex) { super(message); this.setLocator(ex); setStylesheetNode(getStylesheetNode(ex)); }
/** * Create an XPathException object that holds * an error message. * @param message The error message. */ public XPathException(String message, ExpressionNode ex) { super(message); this.setLocator(ex); setStylesheetNode(getStylesheetNode(ex)); }
/** * Report a warning to the error listener * @param error an exception containing the warning text */ protected void issueWarning(TransformerException error) { if (error.getLocator() == null) { error.setLocator(this); } PreparedStylesheet pss = getPreparedStylesheet(); if (pss != null) { // it is null before the stylesheet has been fully built - ignore it pss.reportWarning(error); } }
/** * Report a warning to the error listener * @param error an exception containing the warning text */ protected void issueWarning(TransformerException error) { if (error.getLocator() == null) { error.setLocator(this); } PreparedStylesheet pss = getPreparedStylesheet(); if (pss != null) { // it is null before the stylesheet has been fully built - ignore it pss.reportWarning(error); } }
exception.setLocator(locator);
exception.setLocator(locator);
exception.setLocator(locator);
public void fatalError(TransformerException e) throws TransformerException { if(traceListener != null) { NodeInfo nodeInfo = traceListener.getContextNodeInfo(); nodeInfo = traceListener.getCurrentNodeInfo(); if(nodeInfo != null && nodeInfo.getSystemId() != null && !nodeInfo.getSystemId().isEmpty()) { XMLSourceLocator xmlLocator = new XMLSourceLocator(nodeInfo.getSystemId(), nodeInfo.getLineNumber()); XSLSourceLocator xslLocator = new XSLSourceLocator(e.getLocator(), xmlLocator); e.setLocator(xslLocator); } } super.fatalError(e); }