mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-03-10 22:33:09 +00:00
11 lines
262 B
Nim
11 lines
262 B
Nim
import pkg/questionable
|
|
import ../statemachine
|
|
import ./errored
|
|
import ../../asyncyeah
|
|
|
|
type
|
|
ErrorHandlingState* = ref object of SaleState
|
|
|
|
method onError*(state: ErrorHandlingState, error: ref CatchableError): ?State =
|
|
some State(SaleErrored(error: error))
|