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.I updated the sample project to take advantage of the change.