Skip to content

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

@cojoj

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? 😝

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