| Safe Haskell | None |
|---|
Control.Etage.Fail
Description
This module defines a simple Neuron which just fails (throws a DissolvingException) in growing phase. It can be used to test
error recovery and cleanup in growing phase or early stages of liveing phase in other Neurons by using something like:
_ <- (growNeuron :: NerveNone FailNeuron) (\o -> o { delay = 10000000 })
somewhere among (or after) growNeuron calls for other Neurons in Incubation.
- data FailNeuron
- type FailFromImpulse = NeuronFromImpulse FailNeuron
- type FailForImpulse = NeuronForImpulse FailNeuron
- type FailOptions = NeuronOptions FailNeuron
Documentation
data FailNeuron Source
type FailFromImpulse = NeuronFromImpulse FailNeuronSource
Impulses from FailNeuron. This Neuron does not define any Impulses it would send, NoImpulse.
type FailForImpulse = NeuronForImpulse FailNeuronSource
Impulses for FailNeuron. This Neuron does not define any Impulses it would receive, NoImpulse.
type FailOptions = NeuronOptions FailNeuronSource
Options for FailNeuron. This option is defined: