|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.virtuosotechnologies.lib.xml.ZeroToleranceErrorHandler
ErrorHandler that doesn't tolerate any errors. Any errors reported get thrown as exceptions. Ignores warnings. Also optionally logs events.
Constructor Summary | |
ZeroToleranceErrorHandler()
Construct an error handler that doesn't log errors |
|
ZeroToleranceErrorHandler(Level level)
Construct an error handler that logs all errors and warnings at the given level |
|
ZeroToleranceErrorHandler(Level errorLevel,
Level warningLevel)
Construct an error handler that logs all errors and warnings at the given levels |
Method Summary | |
void |
error(SAXParseException ex)
|
void |
fatalError(SAXParseException ex)
|
void |
warning(SAXParseException ex)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ZeroToleranceErrorHandler()
public ZeroToleranceErrorHandler(Level level)
level
- level to log errors and warningspublic ZeroToleranceErrorHandler(Level errorLevel, Level warningLevel)
errorLevel
- level to log errorswarningLevel
- level to log warningsMethod Detail |
public void error(SAXParseException ex) throws SAXException
error
in interface ErrorHandler
SAXException
public void fatalError(SAXParseException ex) throws SAXException
fatalError
in interface ErrorHandler
SAXException
public void warning(SAXParseException ex) throws SAXException
warning
in interface ErrorHandler
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |