connectParsingError

fun connectParsingError(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (section: CssSection, <Error class: unknown class>) -> Unit): <Error class: unknown class>

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

connectFlags

A combination of ConnectFlags

handler

the Callback to connect. Params: section section the error happened in; error The parsing error