Predicator.InstructionError (Predicator v0.9.2) View Source

Error struct returned by Value Error Types.

iex> %Predicator.InstructionError{} %Predicator.InstructionError{error: "Non valid predicate instruction", instructions: nil, predicate: nil, instruction_pointer: nil, stack: nil}

Link to this section Summary

Link to this section Types

Specs

t() :: %Predicator.InstructionError{
  error: String.t(),
  instruction_pointer: non_neg_integer(),
  instructions: list(),
  opts: list(),
  predicate: String.t(),
  stack: list()
}

Link to this section Functions

Link to this function

instruction_error(machine, predicate)

View Source

Specs

instruction_error(Predicator.Machine.t(), term()) :: {:error, t()}