Swift µframework providing `AnyError(cause:ErrorType)`
Shell Swift Ruby Objective-C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
AnyError
Example
.gitignore
.swift-version
.travis.yml
AnyError.podspec
LICENSE
README.md
_Pods.xcodeproj

README.md

AnyError - type erasure for Error types

CI Status Version License Platform Swift


Note: You might prefer to use Result\AnyError, especially as many projects using AnyError will have already added in Result as a dependancy. When this version of AnyError was created Result\AnyError didn't exist and if it had, there would be no reason for creating this version.


Swift µframework - AnyError(cause:ErrorType) - providing type erasure for ErrorType(s).

Originally designed to be used as the error type associated with a Future or Result - so that when composing futures with map/flatMap the error type is the same and can be propagated through the compositional chain.

Installation

AnyError is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "AnyError"

Author

Nick Ager, nick.ager@gmail.com

License

AnyError is available under the MIT license. See the LICENSE file for more info.