Liking cljdoc? Tell your friends :D

com.yetanalytics.persephone.template.errors


error-msg-strclj/s

(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.
sourceraw docstring

error-msgs-mapclj/s

source

fmtclj/s

source

(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.
sourceraw docstring

prop-error-strclj/s

(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>
```
sourceraw docstring

rule-error-strclj/s

(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>
```
sourceraw docstring

sref-error-strclj/s

(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>
```
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close