| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Plutus.Contracts.ErrorHandling
Documentation
type Schema = (Endpoint "throwError" () .\/ Endpoint "catchError" ()) .\/ Endpoint "catchContractError" () Source #
MyError has a constructor for each type of error that our contract
can throw. The MyContractError constructor wraps a ContractError.
Constructors
| Error1 Text | |
| Error2 | |
| MyContractError ContractError |
Instances
class AsMyError r where Source #
Minimal complete definition
contract :: (AsMyError e, AsContractError e) => SlotConfig -> Contract w Schema e () Source #