Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- errorCode :: ToErrorCode e => e -> Q Exp
- data HeadError
- = InvalidHeadStateTransition
- | ChangedParameters
- | WrongStateInOutputDatum
- | HeadValueIsNotPreserved
- | SignerIsNotAParticipant
- | NoSigners
- | TooManySigners
- | ScriptNotSpendingAHeadInput
- | NoOutputDatumError
- | UnexpectedNonInlineDatum
- | NotPayingToHead
- | SignatureVerificationFailed
- | MustNotChangeVersion
- | BurntTokenNumberMismatch
- | ReimbursedOutputsDontMatch
- | STNotSpent
- | IncorrectUtxoHash
- | MissingCommits
- | NotAllValueCollected
- | IncorrectVersion
- | VersionNotIncremented
- | HasBoundedValidityCheckFailed
- | IncorrectClosedContestationDeadline
- | InfiniteUpperBound
- | InfiniteLowerBound
- | ContestersNonEmpty
- | CloseNoUpperBoundDefined
- | FailedCloseInitial
- | FailedCloseCurrent
- | FailedCloseOutdated
- | TooOldSnapshot
- | UpperBoundBeyondContestationDeadline
- | ContestNoUpperBoundDefined
- | MustNotPushDeadline
- | MustPushDeadline
- | ContesterNotIncluded
- | WrongNumberOfSigners
- | SignerAlreadyContested
- | FailedContestCurrent
- | FailedContestOutdated
- | FanoutUTxOHashMismatch
- | LowerBoundBeforeContestationDeadline
- | FanoutNoLowerBoundDefined
- | FanoutUTxOToDecommitHashMismatch
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)
Instances
ToErrorCode HeadError Source # | |
Defined in Hydra.Contract.HeadError toErrorCode :: HeadError -> Text Source # |