net.sf.xbus.base.xml
Class XParserErrorHandler

java.lang.Object
  extended by net.sf.xbus.base.xml.XParserErrorHandler
All Implemented Interfaces:
org.xml.sax.ErrorHandler

public class XParserErrorHandler
extends java.lang.Object
implements org.xml.sax.ErrorHandler

XParserErrorHandler handles messages from a xml parser when validating the xml code.

Author:
Stephan Düwel
See Also:
If the application does not register an error handler, all error events reported by the SAX parser will be silently ignored; however, normal processing may not continue. It is highly recommended that all SAX applications implement an error handler to avoid unexpected bugs.
The only thing in XParserErrorHandler is tracing the SAXParseExceptions.

Constructor Summary
XParserErrorHandler()
           
 
Method Summary
 void error(org.xml.sax.SAXParseException e)
           
 void fatalError(org.xml.sax.SAXParseException e)
           
 void warning(org.xml.sax.SAXParseException e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XParserErrorHandler

public XParserErrorHandler()
Method Detail

warning

public void warning(org.xml.sax.SAXParseException e)
Specified by:
warning in interface org.xml.sax.ErrorHandler
See Also:
ErrorHandler.warning(SAXParseException)

error

public void error(org.xml.sax.SAXParseException e)
           throws org.xml.sax.SAXException
Specified by:
error in interface org.xml.sax.ErrorHandler
Throws:
org.xml.sax.SAXException
See Also:
ErrorHandler.error(SAXParseException)

fatalError

public void fatalError(org.xml.sax.SAXParseException e)
                throws org.xml.sax.SAXException
Specified by:
fatalError in interface org.xml.sax.ErrorHandler
Throws:
org.xml.sax.SAXException
See Also:
ErrorHandler.fatalError(SAXParseException)