public class ReportErrorHandler extends Object implements ErrorHandler
ErrorHandler that reports all errors and warnings.
SAX parse errors are also handled.| Modifier and Type | Field and Description |
|---|---|
boolean |
hadError |
static String |
MSG_ERROR |
static String |
MSG_FATAL |
static String |
MSG_TOO_MANY_ERRORS |
static String |
MSG_WARNING |
| Constructor and Description |
|---|
ReportErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
error(SAXParseException e) |
void |
fatalError(SAXParseException e) |
protected static void |
printSAXParseException(SAXParseException spe,
String prop) |
void |
warning(SAXParseException e) |
public boolean hadError
public static final String MSG_TOO_MANY_ERRORS
public static final String MSG_ERROR
public static final String MSG_WARNING
public static final String MSG_FATAL
public void error(SAXParseException e) throws SAXException
error in interface ErrorHandlerSAXExceptionpublic void fatalError(SAXParseException e) throws SAXException
fatalError in interface ErrorHandlerSAXExceptionpublic void warning(SAXParseException e)
warning in interface ErrorHandlerprotected static void printSAXParseException(SAXParseException spe, String prop)
Copyright © 2014 Oracle Corporation. All Rights Reserved.