Swiftpack.co -  CharlesJS/CSErrors as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
A set of additions to `Error`, `CocoaError`, and `URLError` which provide some handy features.
.package(url: "https://github.com/CharlesJS/CSErrors.git", from: "0.3.4")


A set of additions to Error, CocoaError, and URLError which provide some handy features:

  • Easily make an Error from a POSIX error code, a Mach kern_return_t, an IOKit IOReturn, or an OSStatus.
  • Easily find out whether an Error represents a file not found error, a permissions error, or a cancellation error, regardless of the error's domain.
  • Easily wrap any Error in a RecoverableError to present recovery options in error dialogs.
  • Quickly and easily create a CocoaError or a URLError containing any of their supported userInfo dictionary keys.

These additions are free for any use under the terms of the MIT license.

Charles Srstka


Stars: 0
Last commit: 5 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API