public class XMLErrorHandler extends Object implements ErrorHandler
Modifier and Type | Field and Description |
---|---|
private LogManager |
mLogger
The handle to the logging object that is used to log the messages.
|
Constructor and Description |
---|
XMLErrorHandler()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
error(SAXParseException e)
Logs the error messages which SAX parser generates while
validating the XML file against an XML Schema
|
void |
fatalError(SAXParseException e)
Logs the the fatal messages which SAX parser generates while
validating the XML file against an XML Schema
|
void |
warning(SAXParseException e)
Logs the warning messages in the SAX parser generates while
validating the XML file against an XML Schema.
|
private LogManager mLogger
public XMLErrorHandler()
public void warning(SAXParseException e) throws SAXException
warning
in interface ErrorHandler
e
- the execption that is being caught.SAXException
public void error(SAXParseException e) throws SAXException
error
in interface ErrorHandler
e
- the exception that is being caught.SAXException
public void fatalError(SAXParseException e) throws SAXException
fatalError
in interface ErrorHandler
e
- the exception that is being caughtSAXException
Copyright © 2011 The University of Southern California. All Rights Reserved.