MonadError
public protocol MonadError : ApplicativeError, MonadA MonadError has the same capabilities as a Monad and an ApplicativeError.
- 
                  ensure(_:_:_:)Extension methodChecks if the value of a computation matches a predicate, raising an error if not. DeclarationParametersfaA computation in the context implementing this instance. errorA function that produces an error of the type this instance is able to handle. predicateA boolean predicate to test the value of the computation. Return ValueA value or an error in the context implementing this instance. 
- 
                  flatTapError(_:_:)Extension methodApplies a monadic function to an effect discarding the output. DeclarationParametersfaA computation. fA monadic function which result will be discarded. Return ValueA computation with the effect of the initial computation. 
 
             Install in Dash
              Install in Dash
             MonadError Protocol Reference
        MonadError Protocol Reference