Cogl.error_matches

function error_matches(error: GLib.Error, domain: Number(guint32), code: Number(gint)): Cogl.Bool {
    // Gjs wrapper for cogl_error_matches()
}
  

Returns true if error matches domain and code, false otherwise. In particular, when error is null, FALSE will be returned.

error

A #CoglError thrown by the Cogl api or null

domain

The error domain

code

The error code

Returns

whether the error corresponds to the given domain and code.