public class ErrorLogger extends Object implements ErrorHandler, Serializable
ErrorHandler
that mainly just logs errors/warnings. However, it does track
the errors it encounters and makes them available via getErrors()
.Constructor and Description |
---|
ErrorLogger() |
ErrorLogger(String file) |
Modifier and Type | Method and Description |
---|---|
void |
error(SAXParseException error) |
void |
fatalError(SAXParseException error) |
List<SAXParseException> |
getErrors() |
boolean |
hasErrors() |
void |
logErrors() |
void |
reset() |
void |
warning(SAXParseException warn) |
public ErrorLogger()
public ErrorLogger(String file)
public void error(SAXParseException error)
error
in interface ErrorHandler
public void fatalError(SAXParseException error)
fatalError
in interface ErrorHandler
public void warning(SAXParseException warn)
warning
in interface ErrorHandler
public List<SAXParseException> getErrors()
public void reset()
public boolean hasErrors()
public void logErrors()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.