mirror of
https://github.com/status-im/nim-codex.git
synced 2025-02-08 08:53:45 +00:00
e5df8c50d3
* style: nph setup * chore: formates codex/ and tests/ folder with nph 0.6.1
9 lines
237 B
Nim
9 lines
237 B
Nim
import pkg/questionable
|
|
import ../statemachine
|
|
import ./errored
|
|
|
|
type ErrorHandlingState* = ref object of SaleState
|
|
|
|
method onError*(state: ErrorHandlingState, error: ref CatchableError): ?State =
|
|
some State(SaleErrored(error: error))
|