Error message namespace.
Error message namespace.
(error-message-str {error-type :type
{statement-id "id" stmt-context "context"} :statement})
Given a pattern match error map, create a pretty error message detailing the error, Statement ID, and relevant Statement details (i.e. context activities, registration, and subregistrations).
Each error type has a corresponding error description (the stmt
alias is for the persephone.utils.statement
namespace):
| Keyword | Description
| --- | ---
| ::stmt/missing-profile-reference
| Missing Profile version in context category activity IDs
| ::stmt/invalid-subreg-no-registration
| Invalid subregistration - no statement registration
| ::stmt/invalid-subreg-nonconformant
| Invalid subregistration - does not conform to spec
Given a pattern match error map, create a pretty error message detailing the error, Statement ID, and relevant Statement details (i.e. context activities, registration, and subregistrations). Each error type has a corresponding error description (the `stmt` alias is for the `persephone.utils.statement` namespace): | Keyword | Description | --- | --- | `::stmt/missing-profile-reference` | Missing Profile version in context category activity IDs | `::stmt/invalid-subreg-no-registration` | Invalid subregistration - no statement registration | `::stmt/invalid-subreg-nonconformant` | Invalid subregistration - does not conform to spec
(failure-message-str
{statement-id :statement pattern-id :pattern trace-coll :traces})
Given an pattern match failure map, create a pretty error message detailing the statement ID, primary pattern ID, and the traces containing visited templates and pattern paths.
Given an pattern match failure map, create a pretty error message detailing the statement ID, primary pattern ID, and the traces containing visited templates and pattern paths.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close