Dynamic configuration for commando/execute behavior.
:debug-result (boolean): When true, adds additional execution
information to the returned status-map, aiding in instruction analysis.:error-data-string (boolean): When true, the :data key in
serialized ExceptionInfo (via commando.impl.utils/serialize-exception)
will be a string representation of the data. When false, it will return
the original map structure.Dynamic configuration for `commando/execute` behavior. - `:debug-result` (boolean): When true, adds additional execution information to the returned status-map, aiding in instruction analysis. - `:error-data-string` (boolean): When true, the `:data` key in serialized `ExceptionInfo` (via `commando.impl.utils/serialize-exception`) will be a string representation of the data. When false, it will return the original map structure.
(command-map-spec-registry)For debugging purposes and some mysterious reason of setting it dynamically during execution
For debugging purposes and some mysterious reason of setting it dynamically during execution
(execute-config)Returns the effective configuration for commando/execute, getting data from dynamic variable commando.impl.utils/*execute-config*
Returns the effective configuration for `commando/execute`, getting data from dynamic variable `commando.impl.utils/*execute-config*`
(resolve-fn x)Normalize x to a function (fn? x) => true.
:clj supports fn?/Var/Symbol (with requiring-resolve fallback). :cljs only accepts actual functions
Normalize `x` to a function (fn? x) => true.
- Fn((fn [] ..),:keyword)
- Vars(#'clojure.core/str, #'str),
- Symbols('clojure.core/str, 'str)
:clj supports fn?/Var/Symbol (with requiring-resolve fallback).
:cljs only accepts actual functions(serialize-exception e)Serializes errors into data structures.
Serializes errors into data structures.
Multimethod for serializing exceptions to maps. Dispatch based on exception class To add custom serialization for your exception type:
Example (defmethod serialize-exception-fn ClassOfException [e] {:type "my-exception" :message (.getMessage e) ...})
See
commando.impl.utils/serialize-exception
Multimethod for serializing exceptions to maps.
Dispatch based on exception class
To add custom serialization for your exception type:
Example
(defmethod serialize-exception-fn ClassOfException [e]
{:type "my-exception"
:message (.getMessage e)
...})
See
`commando.impl.utils/serialize-exception`Multimethod for serializing exceptions to maps. dispatch differentiate two type of exception. Not supposed to be extended in cljs
See
commando.impl.utils/serialize-exception
Multimethod for serializing exceptions to maps. dispatch differentiate two type of exception. Not supposed to be extended in cljs See `commando.impl.utils/serialize-exception`
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |