Skip to content

Improve catching of Swift Errors.#53

Open
iCarambaa wants to merge 1 commit intosaoudrizwan:masterfrom
iCarambaa:feature/error-handling
Open

Improve catching of Swift Errors.#53
iCarambaa wants to merge 1 commit intosaoudrizwan:masterfrom
iCarambaa:feature/error-handling

Conversation

@iCarambaa
Copy link

Use NS_ERROR_ENUM and NSErrorDomain in Objective-C, which works nicely in NSError and as Swift Error. Errors can now be catched as catch DiskError.noFileFound without introducing a source breaking change.

I updated the sample project to take advantage of the change.

Use NS_ERROR_ENUM and NSErrorDomain in Objective-C, which works nicely in NSError and as Swift Error. Errors can now be catched as `catch DiskError.noFileFound` without introducing a source breaking change.
craigrouse added a commit to craigrouse/Disk that referenced this pull request May 29, 2019
@copa
Copy link

copa commented Jan 14, 2020

@saoudrizwan Do you have any reasons or concerns why this PR isn't merge yet?

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

Successfully merging this pull request may close these issues.

2 participants