- All Known Subinterfaces:
SheetErrorHandler
- All Known Implementing Classes:
DefaultSheetErrorHandler,ExceptionErrorHandler
public interface SACErrorHandler
High-level handling of SAC errors and warnings.
-
Method Summary
Modifier and TypeMethodDescriptionvoidhandleSacError(CSSParseException exception) Handle a SAC error or fatal error.voidhandleSacWarning(CSSParseException exception) Handle a SAC warning.booleanCheck whether this handler has been notified of SAC errors (or fatal errors).booleanCheck whether this handler has been notified of SAC warnings.voidmapError(CSSParseException exception, CSSRule rule) Map a SAC error or fatal error to a specific rule.
-
Method Details
-
mapError
Map a SAC error or fatal error to a specific rule.- Parameters:
exception- the parse exception.rule- the rule having the error.
-
handleSacWarning
Handle a SAC warning.- Parameters:
exception- the parse exception.
-
handleSacError
Handle a SAC error or fatal error.- Parameters:
exception- the parse exception.
-
hasSacErrors
boolean hasSacErrors()Check whether this handler has been notified of SAC errors (or fatal errors).- Returns:
trueif SAC errors or fatal errors were notified since lastSheetErrorHandler.reset(),falseotherwise.
-
hasSacWarnings
boolean hasSacWarnings()Check whether this handler has been notified of SAC warnings.- Returns:
trueif SAC warnings were notified since lastSheetErrorHandler.reset(),falseotherwise.
-