WplAi.Errors.CompileError (WPL-AI v1.13.0)

Copy Markdown View Source

Error during compilation to WPL JSON

Summary

Types

error_type()

@type error_type() ::
  :missing_section
  | :invalid_reference
  | :duration_mismatch
  | :constraint_violation

t()

@type t() :: %WplAi.Errors.CompileError{
  details: map() | nil,
  message: String.t(),
  path: [String.t()] | nil,
  type: error_type()
}

Functions

duration_mismatch(header_duration, computed_duration)

invalid_reference(ref_type, ref_value, path)

missing_section(section, plan_type)

new(type, message, opts \\ [])