public void warning(SAXParseException e) throws SAXException { log.warning(e.toString()); }
public void warning(SAXParseException e) throws SAXException { log.warning(e.toString()); }
public void warning(SAXParseException e) throws SAXException { log.warning(e.toString()); }
public void warning(SAXParseException e) throws SAXException { log.warning(e.toString()); }
public void warning(SAXParseException e) throws SAXException { log.warning(e.toString()); }
public void warning(SAXParseException e) throws SAXException { log.warning(e.toString()); }
public void warning(SAXParseException e) throws SAXException { log.warning(e.toString()); }
public void warning(SAXParseException e) throws SAXException { log.warning(e.toString()); }
@Override public void error(SAXParseException arg0) throws SAXException { if (list != null) list.add(new ValidationMessage(Source.InstanceValidator, IssueType.STRUCTURE, arg0.getLineNumber(), arg0.getColumnNumber(), path == null ? arg0.getSystemId() : path, arg0.getMessage(), IssueSeverity.ERROR)); if (logger != null) logger.log("error: " + arg0.toString(), LogMessageType.Error); errors.add(arg0.toString()); }
@Override public void fatalError(SAXParseException arg0) throws SAXException { if (list != null) list.add(new ValidationMessage(Source.InstanceValidator, IssueType.STRUCTURE, arg0.getLineNumber(), arg0.getColumnNumber(), path == null ? arg0.getSystemId() : path, arg0.getMessage(), IssueSeverity.FATAL)); if (logger != null) logger.log("fatal error: " + arg0.toString(), LogMessageType.Error); }
/** * Loads edits file, uses visitor to process all elements */ @Override public void loadEdits() throws IOException { try { XMLReader xr = XMLReaderFactory.createXMLReader(); xr.setContentHandler(this); xr.setErrorHandler(this); xr.setDTDHandler(null); xr.parse(new InputSource(fileReader)); visitor.close(null); } catch (SAXParseException e) { System.out.println("XML parsing error: " + "\n" + "Line: " + e.getLineNumber() + "\n" + "URI: " + e.getSystemId() + "\n" + "Message: " + e.getMessage()); visitor.close(e); throw new IOException(e.toString()); } catch (SAXException e) { visitor.close(e); throw new IOException(e.toString()); } catch (RuntimeException e) { visitor.close(e); throw e; } finally { fileReader.close(); } }
@Override public void error(SAXParseException exception) throws SAXException { LOG.log(Level.WARNING, exception.toString()); errors++; }
@Override public void fatalError(SAXParseException exception) throws SAXException { LOG.log(Level.WARNING, exception.toString()); fatalErrors++; } private boolean isValidationFailed() {
public void info(org.xml.sax.SAXParseException exception) { if (this.isVerbose) { System.out.println("JAXB Info: " + exception.toString() + " in schema " + exception.getSystemId()); } }
/** * {@inheritDoc} */ @Override public void error(SAXParseException e) throws SAXException { // log exception and carry on... log.error("error encountered at line: " + e.getLineNumber() + ", column: " + e.getColumnNumber() + " while parsing XML stream: " + e.toString()); }
@Override public void error(SAXParseException e) throws SAXException { if (LOGGER.isDebugEnabled()) { LOGGER.debug(format("Found error exception parsing document, message '%s'", e.toString()), e); } errors.add(e); }
public void info(SAXParseException exception) { if (this.env.isVerbose()) { System.err.println("Parsing schema info: " + exception.toString()); } }
public void warning(SAXParseException exception) { if (this.env.isVerbose()) { System.err.println("Parsing schema warning " + exception.toString()); } }
public void fatalError(SAXParseException exception) { if (this.env.isVerbose()) { exception.printStackTrace(); } else { System.err.println("Parsing schema fatal error: \n" + exception.toString()); } }
public void error(SAXParseException exception) { if (this.env.isVerbose()) { exception.printStackTrace(); } else { System.err.println("Parsing schema error: \n" + exception.toString()); } }