cachix-api-0.7.0: Servant HTTP API specification for https://cachix.org
Safe HaskellSafe-Inferred
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")