AnyError - type erasure for
Note: You might prefer to use Result\AnyError, especially as many projects using
AnyErrorwill have already added in
Resultas a dependancy. When this version of
AnyErrorwas 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
Result - so that when composing futures with map/flatMap the error type is the same and can be propagated through the compositional chain.
- See Type erasure with AnyError for further details.
AnyError is available through CocoaPods. To install it, simply add the following line to your Podfile:
Nick Ager, email@example.com
AnyError is available under the MIT license. See the LICENSE file for more info.