- All Known Subinterfaces:
SheetErrorHandler
- All Known Implementing Classes:
DefaultSheetErrorHandler
public interface SACErrorHandler
High-level handling of SAC errors and warnings.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleSacError
(CSSParseException exception) Handle a SAC error or fatal error.void
handleSacWarning
(CSSParseException exception) Handle a SAC warning.boolean
Check whether this handler has been notified of SAC errors (or fatal errors).boolean
Check whether this handler has been notified of SAC warnings.void
mapError
(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:
true
if SAC errors or fatal errors were notified since lastSheetErrorHandler.reset()
,false
otherwise.
-
hasSacWarnings
boolean hasSacWarnings()Check whether this handler has been notified of SAC warnings.- Returns:
true
if SAC warnings were notified since lastSheetErrorHandler.reset()
,false
otherwise.
-