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

Using NSException is not a good idea #55

Open
cezheng opened this issue Sep 24, 2015 · 1 comment
Open

Using NSException is not a good idea #55

cezheng opened this issue Sep 24, 2015 · 1 comment

Comments

@cezheng
Copy link
Contributor

cezheng commented Sep 24, 2015

If anyone ever attempting to use this framework in a swift project, NSException can not be directly catched. They have to wrap the try-catch-finally stuff in objective-c code and pass blocks in as parameters from swift, or their programs might be prone to crashing. Ever considered adopting the more usual NSError pattern, which is catchable in swift?

@jasperblues
Copy link
Member

Yes that would be better.

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

2 participants