morley-client-0.3.1: Client to interact with the Tezos blockchain
Safe HaskellSafe-Inferred
LanguageHaskell2010

Morley.Client.RPC.Error

Description

Various errors that can happen in the RPC part of morley-client.

Synopsis

Documentation

data ClientRpcError Source #

Errors that can happen in the RPC part when a user tries to make failing actions.

Constructors

ContractFailed

Smart contract execution has failed.

Fields

  • ContractAddress

    Smart contract address.

  • Expression

    Value the contract has failed with.

BadParameter

Parameter passed to a contract does not match its type.

Fields

  • Address

    Smart or implicit contract address.

  • Expression

    Value passed as parameter.

EmptyTransaction

Transfer of 0 to an implicit account.

Fields

  • ImplicitAddress

    Receiver address.

ShiftOverflow

A smart contract execution failed due to a shift overflow.

Fields

  • ContractAddress

    Smart contract address.

GasExhaustion

A smart contract execution failed due gas exhaustion.

Fields

  • ContractAddress

    Smart contract address.

KeyAlreadyRevealed

A key has already been revealed.

Fields

  • ImplicitAddress

    The address corresponding to the key.

DelegateNotRegistered

Address not registered as delegate

Fields

  • ImplicitAddress

    The address in question.

ClientInternalError InternalError

An error that RPC considers internal occurred. These errors are considered internal by mistake, they are actually quite realistic and normally indicate bad user action. Currently we put InternalError here as is, because it's easy for a user of morley-client to work with this type. In #284 we will consider more errors and maybe some of them will need to be mapped into something more user-friendly, then we will reconsider this approach.

data RunCodeErrors Source #

Errors that can happen during run_code endpoint call. These errors returned along with 500 code, so we have to handle them a bit differently in comparison to other run errors that are returned as a part of successful JSON response.

Constructors

RunCodeErrors [RunError] 

data IncorrectRpcResponse Source #

Errors that we can throw when we get a response from a node that doesn't match our expectations. It means that either the node we are talking to misbehaves or our code is incorrect.