From 4acb111edf79fb8253a701f7b8406f461d616343 Mon Sep 17 00:00:00 2001 From: Artem Medeusheyev Date: Fri, 10 Jun 2022 15:08:04 +0400 Subject: [PATCH] docs: add documentation to functions --- src/k16/gx/beta/error_context.clj | 1 + src/k16/gx/beta/errors.cljc | 1 + 2 files changed, 2 insertions(+) diff --git a/src/k16/gx/beta/error_context.clj b/src/k16/gx/beta/error_context.clj index c1361daf..be586fc5 100644 --- a/src/k16/gx/beta/error_context.clj +++ b/src/k16/gx/beta/error_context.clj @@ -1,6 +1,7 @@ (ns k16.gx.beta.error-context) (defmacro with-err-ctx + "Creates error context by merging value to `k16.gx.beta.error/*err-ctx*`" [ctx & body] `(binding [~'k16.gx.beta.errors/*err-ctx* (merge ~'k16.gx.beta.errors/*err-ctx* ~ctx)] diff --git a/src/k16/gx/beta/errors.cljc b/src/k16/gx/beta/errors.cljc index 3ea8aef3..2a102abc 100644 --- a/src/k16/gx/beta/errors.cljc +++ b/src/k16/gx/beta/errors.cljc @@ -3,6 +3,7 @@ (defrecord ErrorContext [error-type node-key node-contents signal-key]) (def ^:dynamic *err-ctx* + "Error context is used for creating/throwing exceptions with contextual data" (map->ErrorContext {:error-type :general})) (defn gx-err-data