saoudrizwan / Disk

Delightful framework for iOS to easily persist structs, images, and data
MIT License
3.08k stars 170 forks source link

Improve catching of Swift Errors. #53

Open iCarambaa opened 5 years ago

iCarambaa commented 5 years ago

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.

copa commented 4 years ago

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