Skip to content

Conversation

thiblahute
Copy link
Contributor

Add a constructor to create errors from a domain quark and code, useful when creating errors with the same domain/code but different messages as we can't get a rust type which implements the ErrorDomain in that case.

This also adds a code() getter method to retrieve the error code.

Add a constructor to create errors from a domain quark and code,
useful when creating errors with the same domain/code but different
messages as we can't get a rust type which implements the `ErrorDomain`
in that case.

This also adds a code() getter method to retrieve the error code.
@thiblahute thiblahute changed the title glib: Add Error::from_quark constructor and code getter glib: Add Error::with_doman constructor and code getter Oct 3, 2025
@thiblahute thiblahute changed the title glib: Add Error::with_doman constructor and code getter glib: Add Error::with_domain constructor and code getter Oct 3, 2025
@sdroege sdroege merged commit a945ca6 into gtk-rs:main Oct 4, 2025
33 of 48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants