Interface CssProvider.OnParsingError

Enclosing class:
CssProvider
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface CssProvider.OnParsingError
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onParsingError(CssSection section, Error error)
    Signals that a parsing error occurred.
  • Method Details

    • onParsingError

      void onParsingError(@Nonnull CssSection section, @Nonnull Error error)
      Signals that a parsing error occurred.

      The @path, @line and @position describe the actual location of
      the error as accurately as possible.

      Parsing errors are never fatal, so the parsing will resume after
      the error. Errors may however cause parts of the given data or
      even all of it to not be parsed at all. So it is a useful idea
      to check that the parsing succeeds by connecting to this signal.

      Note that this signal may be emitted at any time as the css provider
      may opt to defer parsing parts or all of the input to a later time
      than when a loading function was called.
      Parameters:
      section - section the error happened in
      error - The parsing error