20 package net.sf.gridarta.model.errorview;
22 import org.jetbrains.annotations.NotNull;
23 import org.xml.sax.ErrorHandler;
24 import org.xml.sax.SAXException;
25 import org.xml.sax.SAXParseException;
60 public void warning(
final SAXParseException exception)
throws SAXException {
61 errorViewCollector.
addWarning(errorViewCategory, exception.getMessage());
65 public void error(
final SAXParseException exception)
throws SAXException {
66 errorViewCollector.
addError(errorViewCategory, exception.getMessage());
70 public void fatalError(
final SAXParseException exception)
throws SAXException {
71 errorViewCollector.
addError(errorViewCategory, exception.getMessage());
void warning(final SAXParseException exception)
Convenience class for adding messages to a ErrorView instance using a fixed category name...
ErrorViewCollectorErrorHandler(@NotNull final ErrorViewCollector errorViewCollector, @NotNull final ErrorViewCategory errorViewCategory)
Creates a new instance.
void addWarning(@NotNull final ErrorViewCategory category)
Adds a warning message.
final ErrorViewCollector errorViewCollector
The ErrorViewCollector instance for adding messages.
Defines possible error categories for ErrorView instances.
An ErrorHandler that adds all reported problems to an ErrorViewCollector instance.
void error(final SAXParseException exception)
void addError(@NotNull final ErrorViewCategory category)
Adds an error message.
final ErrorViewCategory errorViewCategory
The ErrorViewCategory to use when adding messages to errorViewCollector.
void fatalError(final SAXParseException exception)