Errors are CVX maps, either mappified CVM exceptions or built from scratch.
Using convex.run.exec/fail
, they are reported back to the CVX executing environment
and can be handled from CVX.
This namespace provides functions for building recurrent error maps.
Errors are CVX maps, either mappified CVM exceptions or built from scratch. Using [[convex.run.exec/fail]], they are reported back to the CVX executing environment and can be handled from CVX. This namespace provides functions for building recurrent error maps.
(assoc-phase err phase)
Associates a phase
to the given err
.
A phase
is a CVM keyword which provides an idea of what stage the error occured in.
Associates a `phase` to the given `err`. A `phase` is a CVM keyword which provides an idea of what stage the error occured in.
(assoc-trx err trx)
Associates a transaction to the given err
map. under :trx
.
Associates a transaction to the given `err` map. under `:trx`.
(fatal message)
Creates a :FATAL
error map.
Creates a `:FATAL` error map.
(mappify ex)
(mappify ex phase trx)
Transforms the given CVM exception into a map.
If prodived, associates to the resulting error map a [[phase]] and the current transaction that caused this error.
Transforms the given CVM exception into a map. If prodived, associates to the resulting error map a [[phase]] and the current transaction that caused this error.
(reader)
Creates a :READER
error map, for when the CVX reader fails.
Creates a `:READER` error map, for when the CVX reader fails.
(sreq code message trx)
Error map describing an error that occured when performing an operation for a request.
Error map describing an error that occured when performing an operation for a request.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close