get_regex_error


Description:

public Error? get_regex_error ()

Regular expression patterns must follow certain rules.

If [property@SearchSettings:search-text] breaks a rule, the error can be retrieved with this function.

The error domain is [error@GLib.RegexError].

Free the return value with [method@GLib.Error.free].

Parameters:

this

a SearchContext.

Returns:

the Error, or null if the pattern is valid.