BoltexNif.Neo4jError (boltex_nif v0.1.1)

View Source

A server-side Cypher/transaction error reported by Neo4j.

kind is a classification atom derived from the Neo4j error code — handy for retry decisions without parsing the code string yourself.

Summary

Functions

Returns true if neo4rs considers this error retryable (either transient or requiring a reconnect / token refresh).

Types

kind()

@type kind() ::
  :authentication
  | :authorization_expired
  | :token_expired
  | :other_security
  | :session_expired
  | :fatal_discovery
  | :transaction_terminated
  | :protocol_violation
  | :client_other
  | :client_unknown
  | :transient
  | :database
  | :unknown

t()

@type t() :: %BoltexNif.Neo4jError{
  code: String.t(),
  kind: kind(),
  message: String.t()
}

Functions

retryable?(neo4j_error)

@spec retryable?(t()) :: boolean()

Returns true if neo4rs considers this error retryable (either transient or requiring a reconnect / token refresh).