Package net.sf.gridarta.model.errorview
Class ErrorViewCollectorErrorHandler
- java.lang.Object
-
- net.sf.gridarta.model.errorview.ErrorViewCollectorErrorHandler
-
- All Implemented Interfaces:
org.xml.sax.ErrorHandler
public class ErrorViewCollectorErrorHandler extends java.lang.Object implements org.xml.sax.ErrorHandlerAnErrorHandlerthat adds all reported problems to anErrorViewCollectorinstance.
-
-
Constructor Summary
Constructors Constructor Description ErrorViewCollectorErrorHandler(@NotNull ErrorViewCollector errorViewCollector, @NotNull ErrorViewCategory errorViewCategory)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(org.xml.sax.SAXParseException exception)voidfatalError(org.xml.sax.SAXParseException exception)voidwarning(org.xml.sax.SAXParseException exception)
-
-
-
Constructor Detail
-
ErrorViewCollectorErrorHandler
public ErrorViewCollectorErrorHandler(@NotNull @NotNull ErrorViewCollector errorViewCollector, @NotNull @NotNull ErrorViewCategory errorViewCategory)Creates a new instance.- Parameters:
errorViewCollector- the error view collector instance for adding messageserrorViewCategory- the error view category to use when adding messages toerrorViewCollector
-
-
Method Detail
-
warning
public void warning(org.xml.sax.SAXParseException exception)
- Specified by:
warningin interfaceorg.xml.sax.ErrorHandler
-
error
public void error(org.xml.sax.SAXParseException exception)
- Specified by:
errorin interfaceorg.xml.sax.ErrorHandler
-
fatalError
public void fatalError(org.xml.sax.SAXParseException exception)
- Specified by:
fatalErrorin interfaceorg.xml.sax.ErrorHandler
-
-