structural-typing.oopsie

The declaration of the core data structure: the oopsie. It is produced when a predicate is applied to a value and fails.

oopsie

An oopsie contains these fields, all potentially relevant when dealing with the failure of a predicate.

  • whole-value: the original value passed to checked.
  • leaf-value: the value passed to the predicate.
  • path: A Specter-style path.
  • predicate: the original predicate (any callable)
  • predicate-string: a friendly string, such as even? instead of #<core$even_QMARK_ clojure.core$even_QMARK_@47a01b6e>
  • predicate-explainer: The explainer function associated with the predicate. It is applied to the oopsie. It usually produces a string, but it could produce anything that your custom failure handler handles.

This var doesn’t actually do anything. It’s just here as the endpoint for links in docstrings.

oopsies

See above.