Obscura.Anonymizer.Error exception (obscura v0.1.0)

Copy Markdown View Source

Structured, value-safe anonymizer operator error.

Errors contain stable machine-readable fields and never include source text, replacement values, salts, callback return values, or exception messages. Codes and fields are stable in 0.1.x; rendered messages are not.

Summary

Types

code()

@type code() ::
  :invalid_operator_collection
  | :invalid_operator_config
  | :unsupported_operator
  | :unknown_operator_option
  | :missing_operator_option
  | :invalid_operator_option
  | :operator_failed
  | :invalid_operator_result

t()

@type t() :: %Obscura.Anonymizer.Error{
  __exception__: term(),
  code: code(),
  field: atom() | nil,
  metadata: map(),
  operator: atom() | nil,
  reason: atom() | nil
}