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.

Instances

Instances details
Eq AppError Source # 
Instance details

Defined in Tendermint.SDK.BaseApp.Errors

Show AppError Source # 
Instance details

Defined in Tendermint.SDK.BaseApp.Errors

Generic AppError Source # 
Instance details

Defined in Tendermint.SDK.BaseApp.Errors

Associated Types

type Rep AppError :: Type -> Type #

Methods

from :: AppError -> Rep AppError x #

to :: Rep AppError x -> AppError #

Exception AppError Source # 
Instance details

Defined in Tendermint.SDK.BaseApp.Errors

FromJSON AppError Source # 
Instance details

Defined in Tendermint.SDK.BaseApp.Errors

Methods

parseJSON :: Value -> Parser AppError

parseJSONList :: Value -> Parser [AppError]

ToJSON AppError Source # 
Instance details

Defined in Tendermint.SDK.BaseApp.Errors

Methods

toJSON :: AppError -> Value

toEncoding :: AppError -> Encoding

toJSONList :: [AppError] -> Value

toEncodingList :: [AppError] -> Encoding

type Rep AppError Source # 
Instance details

Defined in Tendermint.SDK.BaseApp.Errors

type Rep AppError = D1 ('MetaData "AppError" "Tendermint.SDK.BaseApp.Errors" "hs-abci-sdk-0.1.0.0-6BthCXrKFfHAhK2oYxZQI4" 'False) (C1 ('MetaCons "AppError" 'PrefixI 'True) (S1 ('MetaSel ('Just "appErrorCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32) :*: (S1 ('MetaSel ('Just "appErrorCodespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "appErrorMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))

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 Text

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 
StoreError Text 
GrpcError Text 
UnknownAccountError Address 

Instances

Instances details
Show SDKError Source # 
Instance details

Defined in Tendermint.SDK.BaseApp.Errors

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.