Liking cljdoc? Tell your friends :D

convex.run.err

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.
raw docstring

assoc-phaseclj

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

assoc-trxclj

(assoc-trx err trx)

Associates a transaction to the given err map. under :trx.

Associates a transaction to the given `err` map. under `:trx`.
sourceraw docstring

fatalclj

(fatal message)

Creates a :FATAL error map.

Creates a `:FATAL` error map.
sourceraw docstring

mappifyclj

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

readerclj

(reader)

Creates a :READER error map, for when the CVX reader fails.

Creates a `:READER` error map, for when the CVX reader fails.
sourceraw docstring

sreqclj

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

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

× close