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

TGMarker getError() has unexpected type in swift #2028

Open
brianLeeson opened this issue Feb 6, 2019 · 0 comments
Open

TGMarker getError() has unexpected type in swift #2028

brianLeeson opened this issue Feb 6, 2019 · 0 comments

Comments

@brianLeeson
Copy link

brianLeeson commented Feb 6, 2019

TGMarker's getError method returns a Bool depending on if the marker's usage resulted in internal errors. In swift the declaration changes to func getError() throws. I've read in a previous issue about why this is.

My question is about the expected behavior (since the documentation carried from Objc into Swift isn't accurate). Does getError throw the internal error that was generated and not throw any error if no error was generated?

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