|
What this is
Other links
The source codepackage org.apache.log4j.xml.examples; import org.apache.log4j.helpers.LogLog; /** This class is needed for validating a log4j.dtd derived XML file. @author Joe Kesselman @since 0.8.3 */ public class ReportParserError implements org.xml.sax.ErrorHandler { void report(String msg, org.xml.sax.SAXParseException e) { LogLog.error(msg+e.getMessage()+ "\n\tat line="+ e.getLineNumber()+ " col="+e.getColumnNumber()+ " of "+ "SystemId=\""+e.getSystemId()+ "\" PublicID = \""+e.getPublicId()+'\"'); } public void warning(org.xml.sax.SAXParseException e) { report("WARNING: ", e); } public void error(org.xml.sax.SAXParseException e) { report("ERROR: ", e); } public void fatalError(org.xml.sax.SAXParseException e) { report("FATAL: ", e); } } |
... this post is sponsored by my books ... | |
![]() #1 New Release! |
![]() FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.