Skip to content

Support Error Handling in Swift 2.0 + Update README #220

Description

@Jeehut

I just read this in the README:

// Note: Swift currently doesn't have exceptions.
//       Only Objective-C code can raise exceptions
//       that Nimble will catch.

This is not true any more. Swift 2.0 introduced Exceptions and Error handling in general – alongside guard and defer statements to make this easier. There are three things to clear out as far as I can see:

  • Check if Code needs update (I'm guessing 'yes' cause Nimble seems to be catching exceptions)
  • Update Code to support Swift native Error Handling
  • Update README to reflect the changes (if any)

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