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

capture the language exception #181

Merged
merged 2 commits into from
Aug 15, 2024
Merged

Conversation

stevenbrix
Copy link
Collaborator

When an Error is caught by the projection, it needs to call RoOriginateLanguageException to capture the callstack and provide a message for the exception.

There is a lot more we should do to create a more complete experience, for example translating HRESULT -> Error at the API and caching the Error thrown so that we can resurface it in the Application.unhandledException callback.

Right now, this is a first step which will hopefully help Arc get better error information in our traces.

Defaulting to returning E_FAIL for generic swift errors, since there are no "well-defined" exceptions in swift, i don't see an elegant way to translate an error to an HRESULT

@stevenbrix stevenbrix merged commit a73deec into main Aug 15, 2024
1 check passed
@stevenbrix stevenbrix deleted the steve/rooriginatelanguageexception branch August 15, 2024 19:21
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.

2 participants