10 package de.uni_hamburg.corpora.validation;
13 import org.xml.sax.SAXException;
14 import org.xml.sax.SAXParseException;
15 import org.xml.sax.ErrorHandler;
26 private String currentFileName;
28 final String EXB_SCHEMA =
"exb-validate-schema";
36 currentFileName = fileName;
46 private void storeException(SAXParseException saxpe) {
48 String msg = saxpe.getMessage();
49 String embeddedExceptions = saxpe.toString();
50 System.out.println(embeddedExceptions);
51 stats.
addException(EXB_SCHEMA, saxpe,
"In " + currentFileName +
", " + embeddedExceptions);
58 public void fatalError(SAXParseException saxpe)
throws SAXException {
59 storeException(saxpe);
66 public void error(SAXParseException saxpe)
throws SAXException {
67 storeException(saxpe);
74 public void warning(SAXParseException saxpe)
throws SAXException {
75 storeException(saxpe);
void fatalError(SAXParseException saxpe)
ExbErrorReportGenerator(String fileName)
void error(SAXParseException saxpe)
void warning(SAXParseException saxpe)
void addException(Throwable e, String description)