Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- errorCode :: ToErrorCode e => e -> Q Exp
- data InitialError
- = STNotBurned
- | MissingOrInvalidCommitAuthor
- | LockedValueDoesNotMatch
- | MismatchCommittedTxOutInDatum
- | CouldNotFindTheCorrectCurrencySymbolInTokens
- | MultipleHeadTokensOrMoreThan1PTsFound
- | MissingCommittedTxOutInOutputDatum
- | CommittedTxOutMissingInOutputDatum
- | MissingDatum
- | UnexpectedNonInlineDatum
- | ExpectedCommitDatumTypeGotSomethingElse
- | ExpectedSingleCommitOutput
- | WrongHeadIdInCommitDatum
- | MintingOrBurningIsForbidden
- | OutRefNotFound
Documentation
errorCode :: ToErrorCode e => e -> Q Exp Source #
Get the string literal from given error e
. Use this with template haskell
splices, e.g. $(errorCode MyError)
data InitialError Source #
Instances
Show InitialError Source # | |
Defined in Hydra.Contract.InitialError | |
ToErrorCode InitialError Source # | |
Defined in Hydra.Contract.InitialError toErrorCode :: InitialError -> Text Source # |