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 0.4.1
A set of additions to `Error`, `CocoaError`, and `URLError` which provide some handy features.
⭐️ 0
🕓 2 weeks ago
.package(url: "https://github.com/CharlesJS/CSErrors.git", from: "0.4.1")

CSErrors

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

GitHub

link
Stars: 0
Last commit: 2 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

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