Jido.Error.CompensationError exception (Jido v2.0.0-rc.0)

View Source

Error for saga compensation failures.

Fields

  • message - Human-readable error message
  • original_error - The error that triggered compensation
  • compensated - Whether compensation succeeded
  • result - Result from successful compensation
  • details - Additional context

Summary

Types

t()

@type t() :: %Jido.Error.CompensationError{
  __exception__: true,
  compensated: boolean(),
  details: map(),
  message: String.t(),
  original_error: any(),
  result: any()
}