Accrue.Error.InvalidState exception (accrue v0.3.1)

Copy Markdown View Source

Raised when a state-machine transition is attempted from an illegal source state (e.g., pay_invoice/2 on a :void invoice, resume/2 on an :active subscription).

Summary

Types

t()

@type t() :: %Accrue.Error.InvalidState{
  __exception__: true,
  attempted: term(),
  current: term(),
  message: term()
}