Clojure-Intro-Course / babel

MIT License
2 stars 0 forks source link

[Le #145] Handle IllegalArgumentException with no message #55

Open stanislowskij opened 2 months ago

stanislowskij commented 2 months ago

⚠️ Imported from legacy repository. This issue is a duplicate of https://github.com/Clojure-Intro-Course/babel-legacy/issues/145.

babel.middleware=> (make-array Void/TYPE 5)
Default Error:

In Clojure interactive session on line 1.
Call sequence:
[make_array (ns:clojure.core) called in file core.clj on line 3995]
[Clojure interactive session (repl)]
stanislowskij commented 2 months ago

How do we go about this? What cases will produce Clojure errors with no message? It would be wildly unhelpful to just tell the user "Clojure did not produce an error message."

This specific example references line number "-2" of Arrays.java in the exception data for some reason?? Internal Clojure issue?