Tursox.Procedures.Error exception (tursox_procedures v0.1.0)

Copy Markdown View Source

Stable, redacted error returned by procedure operations.

Summary

Types

code()

@type code() ::
  :not_found
  | :disabled
  | :invalid_argument
  | :compile_error
  | :runtime_error
  | :authorization
  | :database
  | :resource_limit
  | :timeout
  | :call_cycle
  | :call_depth
  | :transaction_failed
  | :internal

t()

@type t() :: %Tursox.Procedures.Error{
  __exception__: term(),
  code: code(),
  line: pos_integer() | nil,
  message: String.t(),
  metadata: map(),
  operation: atom(),
  procedure: String.t() | nil,
  procedure_stack: [map()],
  version: pos_integer() | nil
}