predicator v0.9.0 Predicator.InstructionError

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

Link to this type

t()

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)

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