mig-extra-0.1.1.0: Extra utils for Mig core library
Safe HaskellSafe-Inferred
LanguageGHC2021

Mig.Extra.Plugin.Exception

Description

Plugins to handle exceptions

Synopsis

Documentation

handleRespError :: forall a b m. (MonadIO m, MonadCatch m, Exception a, IsResp b) => (a -> m b) -> Plugin m Source #

Catches the run-time exceptions and converts them to responses. This way of using errors is not recommended. Better use response of the type RespOr.