| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Hydra.Contract.HeadError
Synopsis
- errorCode :: ToErrorCode e => e -> Q Exp
- data HeadError
- = InvalidHeadStateTransition
- | ChangedParameters
- | WrongStateInOutputDatum
- | HeadValueIsNotPreserved
- | SignerIsNotAParticipant
- | NoSigners
- | TooManySigners
- | ScriptNotSpendingAHeadInput
- | NoOutputDatumError
- | UnexpectedNonInlineDatum
- | NotPayingToHead
- | SignatureVerificationFailed
- | MustNotChangeVersion
- | BurntTokenNumberMismatch
- | VersionNotIncremented
- | HasBoundedValidityCheckFailed
- | IncorrectClosedContestationDeadline
- | InfiniteUpperBound
- | InfiniteLowerBound
- | ContestersNonEmpty
- | CloseNoUpperBoundDefined
- | FailedCloseInitial
- | FailedCloseAny
- | TooOldSnapshot
- | UpperBoundBeyondContestationDeadline
- | ContestNoUpperBoundDefined
- | MustNotPushDeadline
- | MustPushDeadline
- | ContesterNotIncluded
- | WrongNumberOfSigners
- | SignerAlreadyContested
- | FailedContestUnused
- | FailedContestUsed
- | FanoutUTxOHashMismatch
- | LowerBoundBeforeContestationDeadline
- | FanoutNoLowerBoundDefined
- | DepositNotSpent
- | DepositInputNotFound
- | HeadInputNotFound
- | FailedCloseUnused
- | FailedCloseUsed
- | MissingCRSDatum
- | MissingCRSRefInput
- | PartialFanoutMembershipFailed
- | PartialFanoutChangedParameters
- | AccumulatorCommitmentHashMismatch
- | FinalPartialFanoutMembershipFailed
- | FinalPartialFanoutZeroOutputs
- | PartialFanoutZeroOutputs
- | PartialFanoutCannotBeLastBatch
- | ChangedHeadAdaOverhead
- | DepositDatumInvalid
- | InvalidCRSDatum
- | DepositNotFirstOutput
- | DecrementZeroOutputs
- | MustNotSpendOtherScripts
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)
Constructors
Instances
| ToErrorCode HeadError Source # | |
Defined in Hydra.Contract.HeadError Methods toErrorCode :: HeadError -> Text Source # | |