package
Version:
v0.0.0-...-2cf96cb
Opens a new window with list of versions in this module.
Published: Jul 26, 2024
License: ISC
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 9
Opens a new window with list of known importers.
Documentation
¶
Copy return a new Go error from a *GError without freeing.
New creates a new *C.GError from the given error. The caller is responsible
for freeing the error with g_error_free().
Take returns a new Go error from a *GError and frees the *GError. If the
*GError is nil, then a nil error is returned.
GError is converted from a C.GError to implement Go's error interface.
Quark returns the internal quark for the error. Callers that want this quark
must manually type assert using their own interface.
type GErrorCoder interface {
GErrorCode() int
}
GErrorCoder is an interface that returns a GError code. Errors may optionally
implement this interface to override the default error code.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.