[CLJ-1280] Create reusable exception that can carry file/line/col info Created: 18/Oct/13 Updated: 15/May/17
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.
|Comment by Kevin Downey [ 18/Apr/14 12:09 AM ]|
seems like ExceptionInfo can do this