Skip to content

Change API call signatures to use ErrorType instead of NSError #81

Description

@cojoj

Right now most of our API endpoint methods (these located in XcodeServer extensions) are constructed in non-swifty way - they return optional NSError pointers.

How about gradually changing them to throwing methods?
There are some benefits of doing this:

  1. Swifty way (most important argument... 😜)
  2. Reduce amount of Optionals
  3. More descriptive errors, as they'll be enums

I know, I know, I may be overreacting... Maybe that's because I have too much free time? 😝

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions