Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data AppError = AppError {
- appErrorCode :: Word32
- appErrorCodespace :: Text
- appErrorMessage :: Text
- class IsAppError e where
- makeAppError :: e -> AppError
- queryAppError :: Lens' Query AppError
- txResultAppError :: Lens' TxResult AppError
- data SDKError
- = InternalError
- | ParseError Text
- | UnmatchedRoute Text
- | OutOfGasException
- | MessageValidation [Text]
- | SignatureRecoveryError Text
- | NonceException Word64 Word64
- 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.
AppError | |
|
Instances
Eq AppError Source # | |
Show AppError Source # | |
Exception AppError Source # | |
Defined in Tendermint.SDK.BaseApp.Errors toException :: AppError -> SomeException # fromException :: SomeException -> Maybe AppError # displayException :: AppError -> String # |
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 # |
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 | 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 |
Instances
IsAppError SDKError Source # | |
Defined in Tendermint.SDK.BaseApp.Errors makeAppError :: SDKError -> AppError Source # |