Liking cljdoc? Tell your friends :D

midje.parsing.util.error-handling

Utility functions dealing with checking or tranforming forms or zippers.

Utility functions dealing with checking or tranforming forms or zippers.
raw docstring

*wrap-count*clj

source

bail-out-of-parsingclj

source

inside-an-error-handling-wrapper?clj

(inside-an-error-handling-wrapper?)
source

parse-and-catch-failureclj

(parse-and-catch-failure form-being-parsed parser)

Execute the parsing function (which should have already lexically bound the parts of the form it needs). Upon success, return the parsed form. If the parser discovers an error, it should report-error, which stops further execution and returns false. In case of some exception, the form-being-parsed is used to attempt some decent output.

These functions can be dynamically nested: only the outermost one will have to deal with parse errors.

Note that the parsing code should take care not to let unparsed code escape from this function via lazy seqs.

Execute the parsing function (which should have
already lexically bound the parts of the form it
needs). Upon success, return the parsed form. If
the parser discovers an error, it should `report-error`,
which stops further execution and returns false.
In case of some exception, the `form-being-parsed`
is used to attempt some decent output.

These functions can be dynamically nested: only the
outermost one will have to deal with parse errors.

Note that the parsing code should take care not to let
unparsed code escape from this function via lazy seqs.
sourceraw docstring

report-errorclj

(report-error form & notes)
source

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

× close