hs-abci-sdk-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Tendermint.SDK.BaseApp.Errors

Synopsis

Documentation

data AppError Source #

This type represents a common error response for the query, checkTx, | and deliver tx abci-messages.

Constructors

AppError 

class IsAppError e where Source #

Allows for custom application error types to be coerced into the standard error resposne.

Methods

makeAppError :: e -> AppError Source #

queryAppError :: Lens' Query AppError Source #

This lens is used to set the AppError data into the appropriate | response fields for the query abci-message.

txResultAppError :: Lens' TxResult AppError Source #

This lens is used to set the AppError data into the appropriate | response fields for the checkTx/deliverTx abci-message.

data SDKError Source #

These errors originate from the SDK itself. The "sdk" namespace is reserved | for this error type and should not be used in modules or applications.

Constructors

InternalError

Something went wrong and we have no idea what.

ParseError Text

Parsing errors for SDK specific types, e.g. RawTransaction or Msg, etc.

UnmatchedRoute Text

The name of the route that failed to match.

OutOfGasException 
MessageValidation [Text] 
SignatureRecoveryError Text 
NonceException Word64 Word64 
Instances
IsAppError SDKError Source # 
Instance details

Defined in Tendermint.SDK.BaseApp.Errors

throwSDKError :: Member (Error AppError) r => SDKError -> Sem r a Source #

As of right now it's not expected that one can recover from an SDKError, | so we are throwing them as AppErrors directly.