Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data AppError = AppError {}
- class IsAppError e where
- makeAppError :: e -> AppError
- queryAppError :: Lens' Query AppError
- txResultAppError :: Lens' TxResult AppError
- data SDKError
- throwSDKError :: Member (Error AppError) r => SDKError -> Sem r a
Documentation
This type represents a common error response for the query, checkTx, | and deliver tx abci-messages.
Instances
class IsAppError e where Source #
Allows for custom application error types to be coerced into the standard error resposne.
makeAppError :: e -> AppError Source #
Instances
IsAppError SDKError Source # | |
Defined in Tendermint.SDK.BaseApp.Errors makeAppError :: SDKError -> AppError Source # | |
IsAppError RouterError Source # | |
Defined in Tendermint.SDK.BaseApp.Router.Types makeAppError :: RouterError -> AppError Source # | |
IsAppError AuthError Source # | |
Defined in Tendermint.SDK.Modules.Auth.Types makeAppError :: AuthError -> AppError Source # | |
IsAppError BankError Source # | |
Defined in Tendermint.SDK.Modules.Bank.Types makeAppError :: BankError -> 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.
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.
InternalError Text | Something went wrong and we have no idea what. |
ParseError Text | Parsing errors for SDK specific types, e.g. |
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 |