public static void report_error (Object? source_object, TaskReadyCallback callback, void* source_tag, owned Error error)
Use this in the wrapper function of an asynchronous method when you want to avoid even calling the virtual method. You can then use is_tagged in the finish method wrapper to check if the result there is tagged as having been created by the wrapper method, and deal with it appropriately if so.
See also report_new_error.
the Object that owns this task, or null.
an opaque pointer indicating the source of this task
error to report
user data passed to