de.uni_paderborn.fujaba.preferences
Class ParseConfigErrorHandler

java.lang.Object
  extended byde.uni_paderborn.fujaba.preferences.ParseConfigErrorHandler
All Implemented Interfaces:
org.xml.sax.ErrorHandler

class ParseConfigErrorHandler
extends java.lang.Object
implements org.xml.sax.ErrorHandler

An error handler for parsing of the log4j config file

Version:
$Revision: 1.6 $
Author:
$Author: schneider $

Field Summary
private  int count
          Number of errors encountered
private  java.lang.String msg
          Error messages concatenated together
 
Constructor Summary
(package private) ParseConfigErrorHandler()
           
 
Method Summary
 void error(org.xml.sax.SAXParseException e)
          Called by the parser when an error is encountered
 void fatalError(org.xml.sax.SAXParseException e)
          Called by the parser when an fatal error is encountered
 int getErrorCount()
          Returns the number of errors and fatal errors encountered
 java.lang.String getMessage()
          Returns all the error messages received concatenated together
 void warning(org.xml.sax.SAXParseException e)
          Called by the parser when a warning is generated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

count

private int count
Number of errors encountered


msg

private java.lang.String msg
Error messages concatenated together

Constructor Detail

ParseConfigErrorHandler

ParseConfigErrorHandler()
Method Detail

getErrorCount

public int getErrorCount()
Returns the number of errors and fatal errors encountered

Returns:
number of errors

getMessage

public java.lang.String getMessage()
Returns all the error messages received concatenated together

Returns:
the error messages

error

public void error(org.xml.sax.SAXParseException e)
Called by the parser when an error is encountered

Specified by:
error in interface org.xml.sax.ErrorHandler
Parameters:
e - the exception caused by the error

fatalError

public void fatalError(org.xml.sax.SAXParseException e)
Called by the parser when an fatal error is encountered

Specified by:
fatalError in interface org.xml.sax.ErrorHandler
Parameters:
e - the exception caused by the fatal error

warning

public void warning(org.xml.sax.SAXParseException e)
Called by the parser when a warning is generated

Specified by:
warning in interface org.xml.sax.ErrorHandler
Parameters:
e - the exception caused by the warning