final SourceLocator locator = e.getLocator(); if (locator != null) { final String systemid = locator.getSystemId();
SourceLocator causeLocator = ((TransformerException)cause).getLocator(); if(null != causeLocator) locator = causeLocator;
SourceLocator causeLocator = ((TransformerException)cause).getLocator(); if(null != causeLocator) locator = causeLocator;
SourceLocator causeLocator = ((TransformerException)cause).getLocator(); if(null != causeLocator)
SourceLocator locator = spe2.getLocator(); if ((null != locator) && (null != locator.getSystemId())) diagnosticsWriter.println(" ID: " + locator.getSystemId()
SourceLocator locator = spe2.getLocator(); if ((null != locator) && (null != locator.getSystemId())) diagnosticsWriter.println(" ID: " + locator.getSystemId()
SourceLocator causeLocator = ((TransformerException)cause).getLocator(); if(null != causeLocator) locator = causeLocator;
SourceLocator causeLocator = ((TransformerException)cause).getLocator(); if(null != causeLocator) locator = causeLocator;
SAXSourceLocator sl = new SAXSourceLocator( te.getLocator() ); m_serializationHandler.fatalError(new org.xml.sax.SAXParseException(te.getMessage(), sl, te));
SAXSourceLocator sl = new SAXSourceLocator( te.getLocator() ); m_serializationHandler.fatalError(new org.xml.sax.SAXParseException(te.getMessage(), sl, te));
if(null == te.getLocator()) te.setLocator(this);
if(null == te.getLocator()) te.setLocator(this);
public void warning( final TransformerException e ) throws TransformerException { LOGGER.log( Level.WARNING, DefaultModelBundle.getInstance(). getParseExceptionMessage( Locale.getDefault(), rsrc.toExternalForm(), e.getMessage(), new Integer( e.getLocator().getLineNumber() ), new Integer( e.getLocator().getColumnNumber() ) ) ); }
public void fatalError( final TransformerException e ) throws TransformerException { throw new TransformerException( DefaultModelBundle.getInstance(). getParseExceptionMessage( Locale.getDefault(), rsrc.toExternalForm(), e.getMessage(), new Integer( e.getLocator().getLineNumber() ), new Integer( e.getLocator().getColumnNumber() ) ), e ); }
public void error(TransformerException exception) { oldErrorListener.warning(exception); XPathException supp = new XPathException("The document will be excluded from the collection"); supp.setLocator(exception.getLocator()); oldErrorListener.warning(supp); }
public void error(TransformerException exception) { oldErrorListener.warning(exception); XPathException supp = new XPathException("The document will be excluded from the collection"); supp.setLocator(exception.getLocator()); oldErrorListener.warning(supp); }
public void error(TransformerException exception) throws TransformerException { oldErrorListener.warning(exception); XPathException supp = new XPathException("The document will be excluded from the collection"); supp.setLocator(exception.getLocator()); oldErrorListener.warning(supp); } public void fatalError(TransformerException exception) throws TransformerException {
public static DynamicError makeDynamicError(TransformerException err) { if (err instanceof DynamicError) { return (DynamicError)err; } else if (err instanceof XPathException) { DynamicError de = new DynamicError(err); de.setErrorCode(((XPathException)err).getErrorCodeLocalPart()); de.setLocator(err.getLocator()); return de; } else { return new DynamicError(err); } }
public static DynamicError makeDynamicError(TransformerException err) { if (err instanceof DynamicError) { return (DynamicError)err; } else if (err instanceof XPathException) { DynamicError de = new DynamicError(err); de.setErrorCode(((XPathException)err).getErrorCodeLocalPart()); de.setLocator(err.getLocator()); return de; } else { return new DynamicError(err); } }
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); }