public class ListErrorHandler extends Object implements ErrorHandler
ErrorHandler
which stores SAX Exceptions that can later
be retrieved as List
. Does not throw exceptions.Constructor and Description |
---|
ListErrorHandler() |
Modifier and Type | Method and Description |
---|---|
void |
error(SAXParseException exception) |
void |
fatalError(SAXParseException exception) |
List<SAXParseException> |
getAll() |
List<String> |
getAllMessages() |
List<String> |
getErrorMessages() |
List<SAXParseException> |
getErrors() |
List<String> |
getFatalErrorMessages() |
List<SAXParseException> |
getFatalErrors() |
List<String> |
getWarningMessages() |
List<SAXParseException> |
getWarnings() |
boolean |
isEmpty() |
int |
size() |
void |
warning(SAXParseException exception) |
public void error(SAXParseException exception)
error
in interface ErrorHandler
public void fatalError(SAXParseException exception)
fatalError
in interface ErrorHandler
public void warning(SAXParseException exception)
warning
in interface ErrorHandler
public List<SAXParseException> getErrors()
public List<SAXParseException> getFatalErrors()
public List<SAXParseException> getWarnings()
public List<SAXParseException> getAll()
public boolean isEmpty()
public int size()
Copyright © 2008–2021 Norconex Inc.. All rights reserved.