| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Hydra.Node.ParameterMismatch
Description
Structured errors related to configuration mismatch.
When we start a Node we need to do sanity checks between what's
provided as parameters to the node and what's persisted.
Synopsis
- newtype ParameterMismatch = ParameterMismatch [ParamMismatch]
- data ParamMismatch
- = ContestationPeriodMismatch {
- loadedCp :: ContestationPeriod
- configuredCp :: ContestationPeriod
- | PartiesMismatch {
- loadedParties :: [Party]
- configuredParties :: [Party]
- | SavedNetworkPartiesInconsistent { }
- = ContestationPeriodMismatch {
Documentation
newtype ParameterMismatch Source #
Exception used to indicate command line options not matching the persisted state.
Constructors
| ParameterMismatch [ParamMismatch] |
Instances
| Exception ParameterMismatch Source # | |
Defined in Hydra.Node.ParameterMismatch Methods toException :: ParameterMismatch -> SomeException Source # fromException :: SomeException -> Maybe ParameterMismatch Source # | |
| Show ParameterMismatch Source # | |
Defined in Hydra.Node.ParameterMismatch | |
| Eq ParameterMismatch Source # | |
Defined in Hydra.Node.ParameterMismatch Methods (==) :: ParameterMismatch -> ParameterMismatch -> Bool Source # (/=) :: ParameterMismatch -> ParameterMismatch -> Bool Source # | |
data ParamMismatch Source #
Constructors
| ContestationPeriodMismatch | |
Fields
| |
| PartiesMismatch | |
Fields
| |
| SavedNetworkPartiesInconsistent | |
Fields | |