| career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

package 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 "+
		 "\" 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


new blog posts


Copyright 1998-2021 Alvin Alexander,
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.