cachix-api-0.2.1: Servant HTTP API specification for https://cachix.org

Safe HaskellSafe
LanguageHaskell2010

Cachix.Api.Error

Synopsis

Documentation

escalate :: (Exception exc, MonadThrow m) => Either exc a -> m a Source #

escalateAs :: (Exception exc, MonadThrow m) => (l -> exc) -> Either l a -> m a Source #

Examples: > escalate . maybeToEither err404

| Note that exceptions gets handled by warp and logged (user sees just "Internal server")