<GError>

<GError>

Description

The GError structure contains information about an error that has occurred.

Functions

copy

(define-values (%return) (error:copy self))

Makes a copy of error.

Parameters

error

a GError

Passed as self

free

(define-values () (error:free self))

Frees a GError and associated resources.

Parameters

error

a GError

Passed as self

matches?

(define-values (%return) (error:matches? self domain code))

Returns TRUE if error matches domain and code, FALSE otherwise. In particular, when error is NULL, FALSE will be returned.

If domain contains a FAILED (or otherwise generic) error code, you should generally not check for it explicitly, but should instead treat any not-explicitly-recognized error code as being equivalent to the FAILED code. This way, if the domain is extended in the future to provide a more specific error code for a certain case, your code will still work.

Parameters

error

a GError

Passed as self

domain

an error domain

Passed as domain

code

an error code

Passed as code

error:new-literal

(define-values (%return) (error:new-literal domain code message))

Undocumented

Parameters

domain

Passed as domain

code

Passed as code

message

Passed as message