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

Support for 'Typed Throws' #1371

Open
GJteVeldeParship opened this issue Oct 9, 2024 · 0 comments
Open

Support for 'Typed Throws' #1371

GJteVeldeParship opened this issue Oct 9, 2024 · 0 comments

Comments

@GJteVeldeParship
Copy link

Hello,

we use this great tool - Sourcery 2.2.5 - mainly to generate mocks automatically using a custom template.

Now that Xcode 16 has been released, it is possible to use typed throws (SE-0413). Our mocks are generated, but the typed throws are basically ignored by sourcery.

Looking at the SourceryFramework, especially SourceryMethod, we see that we only get the info whether a method throws or not. Therefore, we cannot adjust our custom template to use this new and very useful Xcode feature.

It would be great if another property, e.g. typedThrows, can be added to all relevant types that's used only whenever a method throws a specific error type.

Thank you in advance for your help!

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

No branches or pull requests

1 participant