Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
243 B
Nim
Raw Normal View History

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))