TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jul 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Nick Ager.
AnyError
- type erasure for Error
types
Note: You might prefer to use Result\AnyError, especially as many projects using
AnyError
will have already added inResult
as a dependancy. When this version ofAnyError
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.
AnyError is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "AnyError"
Nick Ager, [email protected]
AnyError is available under the MIT license. See the LICENSE file for more info.