Commanded v0.16.0 Commanded.Event.FailureContext View Source

Contains the data related to an event handling failure.

The available fields are:

  • context - a map that is passed between each failure. Use it to store any transient state between failures. As an example it could be used to count error failures and stop or skip the problematic event after too many.
  • metadata - the metadata associated with the failed event.

Link to this section Summary

Link to this section Types

Link to this type t() View Source
t() :: %Commanded.Event.FailureContext{context: map(), metadata: map()}