A set of additions to Error, CocoaError, and URLError which provide some handy features:
- Easily make an
Errorfrom a POSIX error code or anOSStatus. - Easily find out whether an
Errorrepresents a file not found error, a permissions error, or a cancellation error, regardless of the error's domain. - Easily wrap any
Errorin aRecoverableErrorto present recovery options in error dialogs. - Quickly and easily create a
CocoaErroror aURLErrorcontaining any of their supporteduserInfodictionary keys. - The base version does not require Foundation.
- For clients who are using Foundation, the optional
CSErrors+Foundationpackage provides some handy Foundation-specific features.
- For clients who are using Foundation, the optional
These additions are free for any use under the terms of the MIT license.
Charles Srstka