Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Swift Bindings] Add basic support for throws method #2939

Merged

Conversation

jkurdek
Copy link
Member

@jkurdek jkurdek commented Jan 16, 2025

Fixes #2888

This PR introduces basic support for handling throws methods. It reads value from SwiftError and raises a simple SwiftRuntimeError when the value is not null. This should be followed up with more complex error support in future milestones.

In order to reduce code duplication I extracted wrapper emission into separate class.

@jkurdek jkurdek added the area-SwiftBindings Swift bindings for .NET label Jan 16, 2025
@jkurdek jkurdek self-assigned this Jan 16, 2025
Copy link
Member

@kotlarmilos kotlarmilos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jkurdek jkurdek merged commit b4788f0 into feature/swift-bindings Jan 17, 2025
6 checks passed
@jkurdek jkurdek deleted the swift/basic-support-for-throws-methods branch January 17, 2025 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-SwiftBindings Swift bindings for .NET
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants