mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-02 13:33:10 +00:00
9 lines
243 B
Nim
9 lines
243 B
Nim
import pkg/questionable
|
|
import ../statemachine
|
|
import ./error
|
|
|
|
type ErrorHandlingState* = ref object of PurchaseState
|
|
|
|
method onError*(state: ErrorHandlingState, error: ref CatchableError): ?State =
|
|
some State(PurchaseErrored(error: error))
|