Relatex.Error exception (relatex v0.2.0)

Copy Markdown View Source

A structured query, connection, or parameter error.

Relate supplies the Neo4j status code, GQL status, failure stage, and retryable flag. Errors detected in the Elixir binding have the code "Relatex.BindingError", stage "binding", and a nil GQL status.

"Relatex.Overloaded" (stage "admission") means a finite owner reached its in-flight limit. The operation was refused before execution and is safe to retry. Its GQL status is nil and its retryable flag is true.

"Relatex.DecodeError" (stage "decode") means the statement succeeded but its result could not be represented in Elixir. Its retryable flag is false. An auto-commit write can already be durable. In an explicit batch the owner rolls back the transaction on a decode error.

Summary

Types

t()

@type t() :: %Relatex.Error{
  __exception__: term(),
  code: String.t(),
  gql_status: String.t() | nil,
  message: String.t(),
  retryable: boolean(),
  stage: String.t()
}