Liking cljdoc? Tell your friends :D

recide.sanex


*sanitization-level*clj

source

apply-suppressionclj

(apply-suppression
  {:keys [cause message stack-trace type data] :as error-components}
  {:keys [suppress-cause? suppress-message? suppress-stack? suppress-data?]
   :as suppression-levels})

Returns a new map of error-components with the suppression-levels applied. Suppression level values are handled on a truthy basis. This is a lower-level utility and ignores :suppress-recursively?.

Returns a new map of error-components with the suppression-levels applied. Suppression level values
are handled on a truthy basis. This is a lower-level utility and ignores :suppress-recursively?.
sourceraw docstring

default-sanitizationclj

source

noop-sanitizationclj

source

sanitary?clj

(sanitary? t)

Returns false for all exceptions unless they are ISanitized or recide errors. For recide, this examines the map for the key ::sanitary. Returns false, true, or a map of suppression options.

Returns false for all exceptions unless they are ISanitized or recide errors.
For recide, this examines the map for the key ::sanitary. Returns false, true,
or a map of suppression options.
sourceraw docstring

sanitizeclj

(sanitize t)
(sanitize t opts)

Sanitizes the Throwable t according to recide.sanex/*sanitization-level*, subject to optional overrides in opts.

Sanitizes the Throwable t according to `recide.sanex/*sanitization-level*`, subject to optional overrides in opts.
sourceraw docstring

specify-sanitizationclj

(specify-sanitization x sanitization)

x : error / error-ex / ex-data sanitization : true / false / map

When sanitization is a boolean, it applies either no sanitization (false) or the sanitization level defined in recide.sanex/sanitization-level (true).

When sanitization is a map, it may specify booleans for the following keys:

  • :suppress-data?
  • :suppress-cause?
  • :suppress-message?
  • :suppress-stack?
  • :suppress-recursively?

This map will be merged onto recide.sanex/sanitization-level

x : error / error-ex / ex-data
sanitization : true / false / map

When sanitization is a boolean, it applies either no sanitization (false) or
the sanitization level defined in recide.sanex/*sanitization-level* (true).

When sanitization is a map, it may specify booleans for the following keys:
 - :suppress-data?
 - :suppress-cause?
 - :suppress-message?
 - :suppress-stack?
 - :suppress-recursively?

This map will be merged onto recide.sanex/*sanitization-level*
sourceraw docstring

without-sanitizationcljmacro

(without-sanitization & body)

Executes body with the sanitization level set to recide.sanex/noop-sanitization.

Executes body with the sanitization level set to recide.sanex/noop-sanitization.
sourceraw docstring

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

× close