public class QuietErrorHandler extends Object implements ErrorHandler
Constructor and Description |
---|
QuietErrorHandler() |
Modifier and Type | Method and Description |
---|---|
void |
error(SAXParseException exception)
Handles the errors.
|
void |
fatalError(SAXParseException exception)
Handles the fatal errors.
|
Iterator<Exception> |
getErrors() |
Iterator<Exception> |
getFatalErrors() |
Iterator<Exception> |
getWarnings() |
boolean |
isEmpty()
Method checks if warnings, errors or fatal errors are collected.
|
boolean |
isError()
Checks if errors are collected.
|
boolean |
isFatalErrors()
Checks if fatal errors are collected.
|
boolean |
isWarning()
Checks if warnings are collected.
|
void |
reset()
Method resets the internal state, so it is possible to use an instance many times.
|
void |
warning(SAXParseException exception)
Handles the warning exceptions.
|
public boolean isEmpty()
public boolean isError()
public boolean isFatalErrors()
public boolean isWarning()
public void error(SAXParseException exception) throws SAXException
error
in interface ErrorHandler
exception
- the exception.SAXException
- if error occurs.public void fatalError(SAXParseException exception) throws SAXException
fatalError
in interface ErrorHandler
exception
- the exception.SAXException
- if error occurs.public void warning(SAXParseException exception) throws SAXException
warning
in interface ErrorHandler
exception
- the exception.SAXException
- if error occurs.public void reset()
Copyright © 2004–2016 52north.org. All rights reserved.