dire
dire copied to clipboard
Erlang-style supervisor error handling for Clojure
I cannot handle the ExceptionInfo that is thrown from this function in buddy.sign.jwt, forcing me to use a regular try/catch: ``` (defn unsign ([message pkey] (unsign message pkey {})) ([message...
Actually, I misunderstood the code I was looking at. Please just delete this issue.
I was helping someone debug an issue in the clojure irc chat and happened to take a look at dire. https://github.com/MichaelDrogalis/dire/commit/ccb90f244bb1b4d98400b5a44d264f0124fbb983 This commit(and the line) is problematic. `#` doesn't give...
The examples in the docs imply that postcondition handlers will receive `args`, but that doesn't seem to be the case: ``` (defn add-one [n] (inc n)) (with-postcondition! #'add-one "An optional...
Hi, I'm curious to know what's the advantage of using the supervisor (erlang style) instead of the *! functions? Thank You.
(this is currently a WIP, and only supports the features of Dire that I use personally, but I think it will be trivial to extend) This allows the user to...
It pukes up a stack trace right now that's rather large. Looking for something more understandable.
Any interest in being able to do the following? ``` clojure (defn foo [a] true) (with-handler! foo ;;
Thought it might be nice to have the src sexp for a given handler around at runtime for easier introspection. But I haven't really thought that through fully. - is...
Raise a more clear exception when the arity of Dire functions doesn't match an expectation. Right now you get a nested function mess that doesn't seem to mean much,