private XomParsingException(ParsingException ex) { super(ex.getMessage(), ex); } }
throw new ParsingException(e.getMessage(), e.getSystemId(), e.getLineNumber(), e.getColumnNumber(), e); } catch (SAXException e) { throw new ParsingException(e.getMessage(), e);
public static Document createDocumentFromXml(String xmlContent) { Document doc = null; try { doc = builder2.build(new StringReader(xmlContent)); } catch (ValidityException e) { e.printStackTrace(); } catch (ParsingException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } return doc; }
logger.error("Dictionary is not well-formed: ", ex.getMessage()); logger.debug("Error at line " + ex.getLineNumber(), ", column " + ex.getColumnNumber()); dict = null; } catch (IOException ex) {
final ImmutableLexicalPositionType<Path> pos = ImmutableLexicalPosition.newPositionWithFile( e.getLineNumber(), e.getColumnNumber(), fs.getPath(e.getURI()));
static Document createDictionary0(URL url) throws IOException { Document dictDoc = null; InputStream in = null; // this will fail if dictionary is badly formed try { in = url.openStream(); dictDoc = new CMLBuilder().build(in); } catch (NullPointerException e) { e.printStackTrace(); throw new RuntimeException("NULL " + e.getMessage() + S_SLASH + e.getCause() + " in " + url); } catch (ValidityException e) { throw new RuntimeException(S_EMPTY + e.getMessage() + S_SLASH + e.getCause() + " in " + url); } catch (ParsingException e) { System.err.println("ERR at line/col " + e.getLineNumber() + S_SLASH + e.getColumnNumber()); throw new RuntimeException(" in " + url, e); } finally { try { in.close(); } catch(IOException e) { e.printStackTrace(); } } return dictDoc; }
logger.error("Dictionary is not well-formed: ", ex.getMessage()); logger.debug("Error at line " + ex.getLineNumber(), ", column " + ex.getColumnNumber()); dict = null; } catch (IOException ex) {
if (e instanceof ParsingException) { resultElement.appendText( "Error at line " + ((ParsingException) e).getLineNumber() + ", column: " + ((ParsingException) e).getColumnNumber()); resultElement.appendText(validationResult.getMessage());
logger.error("Dictionary is not well-formed: ", ex.getMessage()); logger.debug("Error at line " + ex.getLineNumber(), ", column " + ex.getColumnNumber()); dict = null; } catch (IOException ex) {
private XomParsingException(ParsingException ex) { super(ex.getMessage(), ex); } }
throw new ParsingException(e.getMessage(), e.getSystemId(), e.getLineNumber(), e.getColumnNumber(), e); } catch (SAXException e) { throw new ParsingException(e.getMessage(), e);
public static Document createDocumentFromFile(String xmlFilePath) { Document doc = null; try { doc = builder1.build(new File(xmlFilePath)); } catch (ValidityException e) { e.printStackTrace(); } catch (ParsingException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } return doc; }
logger.error("Dictionary is not well-formed: ", ex.getMessage()); logger.debug("Error at line " + ex.getLineNumber(), ", column " + ex.getColumnNumber()); dict = null; } catch (IOException ex) {
private XomParsingException(ParsingException ex) { super(ex.getMessage(), ex); } }
throw new ParsingException(e.getMessage(), e.getSystemId(), e.getLineNumber(), e.getColumnNumber(), e); } catch (SAXException e) { throw new ParsingException(e.getMessage(), e);
public static Node createNode(String xmlDefintion) { Node node = null; try { node = builder2.build(new StringReader(xmlDefintion)).getRootElement().copy(); } catch (ValidityException e) { e.printStackTrace(); } catch (ParsingException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } return node; }
private XomParsingException(ParsingException ex) { super(ex.getMessage(), ex); } }