DodoPayments.Error (dodo_payments v0.1.0)

Copy Markdown View Source

Safe, bounded diagnostics for errors returned by the SDK.

SDK exceptions intentionally retain structured response and adapter details for programmatic reconciliation. Do not serialize exception structs directly. Use safe_summary/1 for logs, metrics, or user-support correlation data that must exclude bodies, headers, URLs, credentials, causes, and stacktraces.

Summary

Functions

Returns a bounded map that is safe to serialize as operational metadata.

Functions

safe_summary(error)

@spec safe_summary(Exception.t()) :: map()

Returns a bounded map that is safe to serialize as operational metadata.