(error-msg-str {:keys [pred vals rule prop sref] :as _error})
Create a pretty error log output when a property or rule is not followed.
Create a pretty error log output when a property or rule is not followed.
(print-errors error-vec)
Print all the errors in error-vec
, grouped by Statement and
Template ID.
Print all the errors in `error-vec`, grouped by Statement and Template ID.
(prop-error-str prop prop-vals real-vals)
Return an error message string for a Determining Property error. Format:
Template <property> property was not matched.
template <property>:
<value A>
statement <property>:
<value B>
Return an error message string for a Determining Property error. Format: ``` Template <property> property was not matched. template <property>: <value A> statement <property>: <value B> ```
(rule-error-str rule pred values)
Return an error message string for a rule error. Format:
Template rule was not followed:
{:location ...,
:property ...}
failed: <reason for error>
statement values:
<value 1>
<value 2>
Return an error message string for a rule error. Format: ``` Template rule was not followed: {:location ..., :property ...} failed: <reason for error> statement values: <value 1> <value 2> ```
(sref-error-str failure sref value)
Return an error message string for a Statement Ref Template error. Format:
<error message>
<error data>
Return an error message string for a Statement Ref Template error. Format: ``` <error message> <error data> ```
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close