Previous: , Up: Error Handling: The STError Domain   [Contents]


B.1.2 Error Quarks and Macros

Macro: ST_ERROR

Expands to st_error_quark(). Use it to recognize a STARTER-specific GError:

if (error && error->domain == ST_ERROR) {
    /* STARTER-specific codes */
}
Function: GQuark st_error_quark (void)

Returns the GQuark that identifies the STARTER error domain.

Returns: The domain quark. Prefer the ST_ERROR macro in call sites.