-
Notifications
You must be signed in to change notification settings - Fork 30
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
Change API call signatures to use ErrorType instead of NSError #81
Comments
Can you provide an example? AFAIK, all our APIs are asynchronous, so the callback block is called much later after the call of the API method. Throw only works with synchronous calls. What we could do is change the signature from |
Right, async... And I'm back home 😉 But we have more methods which may be considered this way eg. Anyway, |
Yup, |
Action: look into changing the error type in API call block callbacks from |
Right now most of our API endpoint methods (these located in
XcodeServer
extension
s) are constructed in non-swifty way - they return optionalNSError
pointers.How about gradually changing them to
throw
ing methods?There are some benefits of doing this:
Optional
senum
sI know, I know, I may be overreacting... Maybe that's because I have too much free time? 😝
The text was updated successfully, but these errors were encountered: