ErrorHandler
public class ReportErrorHandler extends Object implements ErrorHandler
ErrorHandler
that reports all errors and warnings.
SAX parse errors are also handled.Modifier and Type | Field | Description |
---|---|---|
boolean |
hadError |
|
static String |
MSG_ERROR |
|
static String |
MSG_FATAL |
|
static String |
MSG_TOO_MANY_ERRORS |
|
static String |
MSG_WARNING |
Constructor | Description |
---|---|
ReportErrorHandler() |
Modifier and Type | Method | 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 ErrorHandler
SAXException
public void fatalError(SAXParseException e) throws SAXException
fatalError
in interface ErrorHandler
SAXException
public void warning(SAXParseException e)
warning
in interface ErrorHandler
protected static void printSAXParseException(SAXParseException spe, String prop)
Copyright © 2019 Oracle Corporation. All rights reserved.