cardano-rpc
Safe HaskellNone
LanguageHaskell2010

Cardano.Rpc.Server.Internal.Error

Synopsis

Documentation

throwGrpcErrorWithMessage :: MonadIO m => GrpcError -> Text -> m a Source #

Throw a GrpcException with the given error code and message. grapesy converts this to proper gRPC trailers before it reaches serverTopLevel.

renderRpcExceptionForClient :: RpcException -> Text Source #

Render an RpcException for an RPC client, without the call stack. The call stack is internal detail (module names, source lines) and must stay server-side only.