| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Hydra.Contract.DepositError
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 DepositError Source #
Constructors
| DepositDeadlineSurpassed | |
| DepositNoUpperBoundDefined | |
| DepositNoLowerBoundDefined | |
| DepositDeadlineNotReached | |
| IncorrectDepositHash | |
| WrongHeadIdInDepositDatum |
Instances
| Show DepositError Source # | |
Defined in Hydra.Contract.DepositError | |
| ToErrorCode DepositError Source # | |
Defined in Hydra.Contract.DepositError Methods toErrorCode :: DepositError -> Text Source # | |