Interface CSSErrorHandler

All Known Implementing Classes:
EmptyCSSHandler

public interface CSSErrorHandler
A CSS event handler for low-level parsing errors.

Based on SAC's ErrorHandler interface by Philippe Le Hegaret.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Receive notification of an error.
    void
    Receive notification of a warning.
  • Method Details

    • warning

      void warning(CSSParseException exception) throws CSSParseException
      Receive notification of a warning.
      Parameters:
      exception - The warning information encapsulated in a CSS parse exception.
      Throws:
      CSSParseException - if this handler decides that the parse process cannot continue.
    • error

      void error(CSSParseException exception) throws CSSParseException
      Receive notification of an error.

      This corresponds to the definition of "error" in section 1.2 of the W3C XML 1.0 Recommendation. For example, a validating parser would use this callback to report the violation of a validity constraint. The default behaviour is to take no action.

      Parameters:
      exception - The error information encapsulated in a CSS parse exception.
      Throws:
      CSSParseException - if this handler decides that the parse process cannot continue.