Liking cljdoc? Tell your friends :D

d-core.core.messaging.dead-letter.protocol


DeadLetterProtocolcljprotocol

Dead letter abstraction.

Dead letter abstraction.

send-dead-letter!clj

(send-dead-letter! this envelope error-info opts)

Send a failed message to the configured dead letter sink.

Send a failed message to the configured dead letter sink.
raw docstring

normalize-error-infoclj

(normalize-error-info error-info)

Normalizes error-info to be safe for logging/encoding.

Expected input shape:

  • {:error <Exception|string|keyword|any> :stacktrace <string|nil> ...}

Normalization rules:

  • If :error is an Exception, it becomes a map with :message/:class.
  • If :stacktrace is non-string, it is coerced via str.
  • Unknown keys are preserved.

Returns a map.

Normalizes `error-info` to be safe for logging/encoding.

Expected input shape:
- `{:error <Exception|string|keyword|any> :stacktrace <string|nil> ...}`

Normalization rules:
- If `:error` is an Exception, it becomes a map with `:message`/`:class`.
- If `:stacktrace` is non-string, it is coerced via `str`.
- Unknown keys are preserved.

Returns a map.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close