AshNeo4j.Error.UnresolvableTraversal exception (AshNeo4j v0.10.0)

Copy Markdown View Source

Returned (never raised) when a traverse(^chain, …) filter predicate can't be formed because the current graph view can't resolve part of it — a reached node whose label resolves to no loaded resource, or a field that isn't a mapped property of the reached resource.

The filter-context counterpart to AshNeo4j.Unknown (the value-context "couldn't determine"): same {world, reason, context} shape. A data layer returns this as {:error, error} and never raises — :reason is a structural atom, :context is diagnostic.

Summary

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %AshNeo4j.Error.UnresolvableTraversal{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  context: term(),
  path: term(),
  reason: term(),
  splode: term(),
  stacktrace: term(),
  vars: term(),
  world: term()
}

Create an Elixir.AshNeo4j.Error.UnresolvableTraversal without raising it.

Keys

  • :world
  • :reason
  • :context