ribosome-host-0.9.9.9: Neovim plugin host for Polysemy
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ribosome.Host.Data.RpcError

Description

The basic error type for the plugin host.

Synopsis

Documentation

data RpcError Source #

The basic error type for the plugin host, used by the listener, Rpc and several other components.

Constructors

Unexpected Text

An error that is supposed to be prevented by the implementation.

Api RpcMethod [Object] Text

The Neovim API encountered a problem.

Decode Text

A request was instructed to use the wrong decoder or the remote data was invalid.

Instances

Instances details
IsString RpcError Source # 
Instance details

Defined in Ribosome.Host.Data.RpcError

Generic RpcError Source # 
Instance details

Defined in Ribosome.Host.Data.RpcError

Associated Types

type Rep RpcError :: Type -> Type #

Methods

from :: RpcError -> Rep RpcError x #

to :: Rep RpcError x -> RpcError #

Show RpcError Source # 
Instance details

Defined in Ribosome.Host.Data.RpcError

Eq RpcError Source # 
Instance details

Defined in Ribosome.Host.Data.RpcError

MsgpackDecode RpcError Source # 
Instance details

Defined in Ribosome.Host.Data.RpcError

MsgpackEncode RpcError Source # 
Instance details

Defined in Ribosome.Host.Data.RpcError

Reportable RpcError Source # 
Instance details

Defined in Ribosome.Host.Data.RpcError

type Rep RpcError Source # 
Instance details

Defined in Ribosome.Host.Data.RpcError

rpcError :: RpcError -> Text Source #

Extract an error message from an RpcError.