plutus-use-cases-0.1.0.0: Collection of smart contracts to develop the plutus/wallet interface
Safe HaskellNone
LanguageHaskell2010

Plutus.Contracts.ErrorHandling

Synopsis

Documentation

type Schema = (Endpoint "throwError" () .\/ Endpoint "catchError" ()) .\/ Endpoint "catchContractError" () Source #

data MyError Source #

MyError has a constructor for each type of error that our contract can throw. The MyContractError constructor wraps a ContractError.

Instances

Instances details
Show MyError Source # 
Instance details

Defined in Plutus.Contracts.ErrorHandling

Generic MyError Source # 
Instance details

Defined in Plutus.Contracts.ErrorHandling

Associated Types

type Rep MyError :: Type -> Type Source #

ToJSON MyError Source # 
Instance details

Defined in Plutus.Contracts.ErrorHandling

FromJSON MyError Source # 
Instance details

Defined in Plutus.Contracts.ErrorHandling

AsContractError MyError Source # 
Instance details

Defined in Plutus.Contracts.ErrorHandling

AsMyError MyError Source # 
Instance details

Defined in Plutus.Contracts.ErrorHandling

type Rep MyError Source # 
Instance details

Defined in Plutus.Contracts.ErrorHandling

type Rep MyError = D1 ('MetaData "MyError" "Plutus.Contracts.ErrorHandling" "plutus-use-cases-0.1.0.0-sCb7ThsvWbFT6VPXrOzPF" 'False) (C1 ('MetaCons "Error1" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: (C1 ('MetaCons "Error2" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MyContractError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ContractError))))