HookErrorPolicy enum

What a blocking hook's failure means for the UseCase (see Hook.blocking, Hook.onError).

  • continue_ — log and proceed. The default: the hook must never cost the UseCase its result. An ordering-critical side effect that failed is the hook's own problem to retry or escalate.
  • veto — proceed no further: UseCase.call returns Failure(hookFailure) WITHOUT running execute. Use when the UseCase's result is only valid if the hook ran first (e.g. a result that must not be published before an ordering-critical side effect has landed).
Inheritance
Available extensions

Values

continue_ → const HookErrorPolicy
veto → const HookErrorPolicy

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<HookErrorPolicy>
A constant List of the values in this enum, in order of their declaration.