It wouldn't matter which map is throwing the exception in this case. It's
an arity issue and maps accept 1 or 2 parameters.

https://github.com/clojure/clojure/blob/clojure-1.6.0/src/jvm/clojure/lang/APersistentMap.java

If this wasn't REPL, it would result in a larger stacktrace and sufficient
squinting would reveal the line of originating call.


On Thu, Nov 6, 2014 at 3:19 PM, Michael Blume <blume.m...@gmail.com> wrote:

> Well, from the print of the exception, it looks unlikely, but let's look
> at the code. This stacktrace says the exception was thrown in line 429 of
> clojure.lang.AFn, and I'm going to assume you're using Clojure 1.6.0, so we
> want
> https://github.com/clojure/clojure/blob/clojure-1.6.0/src/jvm/clojure/lang/AFn.java#L429
>
> Looking at that line of code, it's creating the exception object using
> only the arity (a number) and the name of the class of the object, a
> string. So no, the map is not recoverable from the exception.
>
>
> On Wednesday, November 5, 2014 10:15:50 PM UTC-8, Sunil Nandihalli wrote:
>>
>> Hi Everybody,
>>
>> user=> ({:a 1})
>>
>> ArityException Wrong number of args (0) passed to: PersistentArrayMap
>>  clojure.lang.AFn.throwArity (AFn.java:429)
>> user=> *e
>> #<ArityException clojure.lang.ArityException: Wrong number of args (0)
>> passed to: PersistentArrayMap>
>>
>> From *e is it possible to infer that the object which threw it was {:a 1}?
>>
>> Thanks,
>> Sunil.
>>
>  --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Kind Regards,
Atamert Ölçgen

-+-
--+
+++

www.muhuk.com

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to