public class ConsoleErrorReporter extends ErrorReceiver
ErrorReceiver
that prints to a PrintStream
.Constructor and Description |
---|
ConsoleErrorReporter() |
ConsoleErrorReporter(OutputStream out) |
ConsoleErrorReporter(PrintStream out) |
Modifier and Type | Method and Description |
---|---|
void |
error(SAXParseException e) |
void |
fatalError(SAXParseException e) |
boolean |
hadError() |
void |
info(SAXParseException e)
Reports verbose messages to users.
|
void |
warning(SAXParseException e) |
debug, error, error, error, error, getLocationString, pollAbort, warning
public ConsoleErrorReporter(PrintStream out)
public ConsoleErrorReporter(OutputStream out)
public ConsoleErrorReporter()
public void warning(SAXParseException e)
warning
in interface ErrorListener
warning
in interface ErrorHandler
warning
in class ErrorReceiver
public void error(SAXParseException e)
error
in interface ErrorListener
error
in interface ErrorHandler
error
in class ErrorReceiver
public void fatalError(SAXParseException e)
fatalError
in interface ErrorListener
fatalError
in interface ErrorHandler
fatalError
in class ErrorReceiver
public void info(SAXParseException e)
ErrorReceiver
info
in interface ErrorListener
info
in class ErrorReceiver
public boolean hadError()
Copyright © 2017 JBoss by Red Hat. All rights reserved.