plutus-contract-1.2.0.0
Safe HaskellNone
LanguageHaskell2010

Plutus.Contract.Error

Synopsis

Documentation

data ContractError Source #

Constructors

WalletContractError WalletAPIError 
ChainIndexContractError Text ChainIndexResponse 
ConstraintResolutionContractError MkTxError 
ToCardanoConvertContractError ToCardanoError 
ResumableContractError MatchingError 
CCheckpointContractError CheckpointError 
EndpointDecodeContractError 

Fields

OtherContractError Text 

Instances

Instances details
Eq ContractError Source # 
Instance details

Defined in Plutus.Contract.Error

Show ContractError Source # 
Instance details

Defined in Plutus.Contract.Error

IsString ContractError Source # 
Instance details

Defined in Plutus.Contract.Error

Generic ContractError Source # 
Instance details

Defined in Plutus.Contract.Error

Associated Types

type Rep ContractError :: Type -> Type Source #

FromJSON ContractError Source # 
Instance details

Defined in Plutus.Contract.Error

Methods

parseJSON :: Value -> Parser ContractError

parseJSONList :: Value -> Parser [ContractError]

ToJSON ContractError Source # 
Instance details

Defined in Plutus.Contract.Error

Methods

toJSON :: ContractError -> Value

toEncoding :: ContractError -> Encoding

toJSONList :: [ContractError] -> Value

toEncodingList :: [ContractError] -> Encoding

Pretty ContractError Source # 
Instance details

Defined in Plutus.Contract.Error

Methods

pretty :: ContractError -> Doc ann

prettyList :: [ContractError] -> Doc ann

AsCheckpointError ContractError Source # 
Instance details

Defined in Plutus.Contract.Error

AsContractError ContractError Source # 
Instance details

Defined in Plutus.Contract.Error

type Rep ContractError Source # 
Instance details

Defined in Plutus.Contract.Error

type Rep ContractError = D1 ('MetaData "ContractError" "Plutus.Contract.Error" "plutus-contract-1.2.0.0-FH8LC9wh7UV4Nmv68NHXrC" 'False) (((C1 ('MetaCons "WalletContractError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 WalletAPIError)) :+: C1 ('MetaCons "ChainIndexContractError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChainIndexResponse))) :+: (C1 ('MetaCons "ConstraintResolutionContractError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MkTxError)) :+: C1 ('MetaCons "ToCardanoConvertContractError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ToCardanoError)))) :+: ((C1 ('MetaCons "ResumableContractError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MatchingError)) :+: C1 ('MetaCons "CCheckpointContractError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CheckpointError))) :+: (C1 ('MetaCons "EndpointDecodeContractError" 'PrefixI 'True) (S1 ('MetaSel ('Just "eeEndpointDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EndpointDescription) :*: (S1 ('MetaSel ('Just "eeEndpointValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (EndpointValue Value)) :*: S1 ('MetaSel ('Just "eeErrorMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :+: C1 ('MetaCons "OtherContractError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))))

class AsContractError r where Source #

Minimal complete definition

_ContractError

Instances

Instances details
AsContractError Text Source #

This lets people use Text as their error type.

Instance details

Defined in Plutus.Contract.Error

AsContractError ContractError Source # 
Instance details

Defined in Plutus.Contract.Error

AsContractError SMContractError Source # 
Instance details

Defined in Plutus.Contract.StateMachine

newtype MatchingError Source #

An error

Constructors

WrongVariantError 

Fields

Instances

Instances details
Eq MatchingError Source # 
Instance details

Defined in Plutus.Contract.Error

Ord MatchingError Source # 
Instance details

Defined in Plutus.Contract.Error

Show MatchingError Source # 
Instance details

Defined in Plutus.Contract.Error

Generic MatchingError Source # 
Instance details

Defined in Plutus.Contract.Error

Associated Types

type Rep MatchingError :: Type -> Type Source #

FromJSON MatchingError Source # 
Instance details

Defined in Plutus.Contract.Error

Methods

parseJSON :: Value -> Parser MatchingError

parseJSONList :: Value -> Parser [MatchingError]

ToJSON MatchingError Source # 
Instance details

Defined in Plutus.Contract.Error

Methods

toJSON :: MatchingError -> Value

toEncoding :: MatchingError -> Encoding

toJSONList :: [MatchingError] -> Value

toEncodingList :: [MatchingError] -> Encoding

Pretty MatchingError Source # 
Instance details

Defined in Plutus.Contract.Error

Methods

pretty :: MatchingError -> Doc ann

prettyList :: [MatchingError] -> Doc ann

AsMatchingError MatchingError Source # 
Instance details

Defined in Plutus.Contract.Error

type Rep MatchingError Source # 
Instance details

Defined in Plutus.Contract.Error

type Rep MatchingError = D1 ('MetaData "MatchingError" "Plutus.Contract.Error" "plutus-contract-1.2.0.0-FH8LC9wh7UV4Nmv68NHXrC" 'True) (C1 ('MetaCons "WrongVariantError" 'PrefixI 'True) (S1 ('MetaSel ('Just "unWrongVariantError") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

class AsMatchingError r where Source #

Minimal complete definition

_MatchingError

Methods

_MatchingError :: Prism' r MatchingError Source #

_WrongVariantError :: Prism' r Text Source #

Instances

Instances details
AsMatchingError MatchingError Source # 
Instance details

Defined in Plutus.Contract.Error

newtype AssertionError Source #

An error emitted when an Assertion fails.

Constructors

GenericAssertion 

Fields

Instances

Instances details
Eq AssertionError Source # 
Instance details

Defined in Plutus.Contract.Error

Show AssertionError Source # 
Instance details

Defined in Plutus.Contract.Error

Generic AssertionError Source # 
Instance details

Defined in Plutus.Contract.Error

Associated Types

type Rep AssertionError :: Type -> Type Source #

FromJSON AssertionError Source # 
Instance details

Defined in Plutus.Contract.Error

Methods

parseJSON :: Value -> Parser AssertionError

parseJSONList :: Value -> Parser [AssertionError]

ToJSON AssertionError Source # 
Instance details

Defined in Plutus.Contract.Error

Methods

toJSON :: AssertionError -> Value

toEncoding :: AssertionError -> Encoding

toJSONList :: [AssertionError] -> Value

toEncodingList :: [AssertionError] -> Encoding

Pretty AssertionError Source # 
Instance details

Defined in Plutus.Contract.Error

Methods

pretty :: AssertionError -> Doc ann

prettyList :: [AssertionError] -> Doc ann

AsAssertionError AssertionError Source # 
Instance details

Defined in Plutus.Contract.Error

type Rep AssertionError Source # 
Instance details

Defined in Plutus.Contract.Error

type Rep AssertionError = D1 ('MetaData "AssertionError" "Plutus.Contract.Error" "plutus-contract-1.2.0.0-FH8LC9wh7UV4Nmv68NHXrC" 'True) (C1 ('MetaCons "GenericAssertion" 'PrefixI 'True) (S1 ('MetaSel ('Just "unAssertionError") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

class AsAssertionError r where Source #

Minimal complete definition

_AssertionError

Methods

_AssertionError :: Prism' r AssertionError Source #

_GenericAssertion :: Prism' r Text Source #

Instances

Instances details
AsAssertionError Text Source #

This lets people use Text as their error type.

Instance details

Defined in Plutus.Contract.Error

Methods

_AssertionError :: Prism' Text AssertionError Source #

_GenericAssertion :: Prism' Text Text Source #

AsAssertionError AssertionError Source # 
Instance details

Defined in Plutus.Contract.Error

AsAssertionError (TraceError e) Source # 
Instance details

Defined in Plutus.Contract.Trace