Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by

This concept already exists in multiple places in Clojure - Compiler$CompilerException and the Exception classes buried in EdnReader and LispReader. It would also be useful in other places where IllegalArgument or other other exceptions are thrown.

For example, this protocol exception throws an IllegalArgumentException and could transmit the file, line, and column info at the location of the error but it seems weird to use any of the existing exceptions for this purpose.

(defprotocol Bar (m [this]) (m [this arg]))

2 Answers

0 votes
by

Comment made by: hiredman

seems like ExceptionInfo can do this

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-1280 (reported by alexmiller)
...