Swiftpack.co - CharlesJS/CSErrors as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by CharlesJS.
CharlesJS/CSErrors 1.2.5
A set of additions to Swift's default error types which provide some handy features. Does not require Foundation.
⭐️ 2
🕓 2 weeks ago
iOS macOS watchOS tvOS macCatalyst
.package(url: "https://github.com/CharlesJS/CSErrors.git", from: "1.2.5")


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

  • Easily make an Error from a POSIX error code 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.
  • The base version does not require Foundation.
    • For clients who are using Foundation, the optional CSErrors+Foundation package provides some handy Foundation-specific features.

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

Charles Srstka


Stars: 2
Last commit: 2 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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