1 64 65 package com.jcorporate.expresso.core.logging; 66 67 73 74 import org.apache.log4j.helpers.LogLog; 75 76 77 83 public class ReportParserError 84 implements org.xml.sax.ErrorHandler { 85 89 void report(String msg, org.xml.sax.SAXParseException e) { 90 LogLog.error(msg + e.getMessage() + "\n\tat line=" + 91 e.getLineNumber() + " col=" + e.getColumnNumber() + 92 " of " + "SystemId=\"" + e.getSystemId() + 93 "\" PublicID = \"" + e.getPublicId() + '\"'); 94 } 95 96 99 public void warning(org.xml.sax.SAXParseException e) { 100 report("WARNING: ", e); 101 } 102 103 106 public void error(org.xml.sax.SAXParseException e) { 107 report("ERROR: ", e); 108 } 109 110 113 public void fatalError(org.xml.sax.SAXParseException e) { 114 report("FATAL: ", e); 115 } 116 117 } 118 119 | Popular Tags |