plutus-chain-index-core-1.2.0.0
Safe Haskell None
Language Haskell2010

Plutus.ChainIndex.ChainIndexError

Synopsis

Documentation

data ChainIndexError Source #

Constructors

InsertionFailed InsertUtxoFailed
RollbackFailed RollbackFailed
ResumeNotSupported
QueryFailedNoTip

Query failed because the chain index does not have a tip (not synchronised with node)

BeamEffectError BeamError
ToCardanoError ToCardanoError

Instances

Instances details
Eq ChainIndexError Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError

Show ChainIndexError Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError

Generic ChainIndexError Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError

ToJSON ChainIndexError Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError

FromJSON ChainIndexError Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError

Pretty ChainIndexError Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError

type Rep ChainIndexError Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError

data InsertUtxoFailed Source #

UTXO state could not be inserted into the chain index

Constructors

DuplicateBlock Tip

Insertion failed as there was already a block with the given number

InsertUtxoNoTip

The _usTip field of the argument was 'Last Nothing'

Instances

Instances details
Eq InsertUtxoFailed Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError

Ord InsertUtxoFailed Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError

Show InsertUtxoFailed Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError

Generic InsertUtxoFailed Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError

ToJSON InsertUtxoFailed Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError

FromJSON InsertUtxoFailed Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError

Pretty InsertUtxoFailed Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError

type Rep InsertUtxoFailed Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError

type Rep InsertUtxoFailed = D1 (' MetaData "InsertUtxoFailed" "Plutus.ChainIndex.ChainIndexError" "plutus-chain-index-core-1.2.0.0-vEgAIGWZqMIuVHBPih2W5" ' False ) ( C1 (' MetaCons "DuplicateBlock" ' PrefixI ' False ) ( S1 (' MetaSel (' Nothing :: Maybe Symbol ) ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 Tip )) :+: C1 (' MetaCons "InsertUtxoNoTip" ' PrefixI ' False ) ( U1 :: Type -> Type ))

data RollbackFailed Source #

Reason why the rollback operation failed

Constructors

RollbackNoTip

Rollback failed because the utxo index had no tip (not synchronised)

TipMismatch

Unable to roll back to expectedTip because the tip at that position was different

OldPointNotFound Point

Unable to find the old tip

Instances

Instances details
Eq RollbackFailed Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError

Ord RollbackFailed Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError

Show RollbackFailed Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError

Generic RollbackFailed Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError

ToJSON RollbackFailed Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError

FromJSON RollbackFailed Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError

Pretty RollbackFailed Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError

type Rep RollbackFailed Source #
Instance details

Defined in Plutus.ChainIndex.ChainIndexError