Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Questions about using error-kit
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Softaddicts  
View profile  
 More options Sep 30 2012, 4:52 pm
From: Softaddicts <lprefonta...@softaddicts.ca>
Date: Sun, 30 Sep 2012 16:51:55 -0400
Local: Sun, Sep 30 2012 4:51 pm
Subject: Re: Questions about using error-kit
Contrib has been separated into separate libs since 1.3

http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go

Suggests to use slingshot.

The are 1.3 compliant monolithic contrib versions out there but it's better to move to
the new implementations.

Luc P.

> I'm trying to learn something about error-kit and encountering some
> unexpected responses, as follows:

> Clojure 1.3.0
> user=> (use 'clojure.contrib.error-kit)
> Warning: *handler-stack* not declared dynamic and thus is not dynamically
> rebindable, but its name suggests otherwise. Please either indicate
> ^:dynamic *handler-stack* or change the name.
> Warning: *continues* not declared dynamic and thus is not dynamically
> rebindable, but its name suggests otherwise. Please either indicate
> ^:dynamic *continues* or change the name.
> nil
> user=> (def tm (throw-msg java.lang.IllegalArgumentException))
> #'user/tm
> user=> (tm "hi")
> IllegalArgumentException  
> sun.reflect.NativeConstructorAccessorImpl.newInstance0
> (NativeConstructorAccessorImpl.java:-2)

> First, note the dynamic variable warnings upon use...(might this possibly
> indicate an out-of-date version of error-kit (I'm using using
> clojure-contrib.jar from 1.2.0)?).

> I'm just starting with error-kit but I would have expected that the last
> call (involving a previous throw-msg function) would have returned
> something like this:

> -> java.lang.IllegalArgumentException: hi

> and would not have included the additional junk from
> 'sun.reflect.NativeConstructor....'. Is this some OSX Java bug or does this
> also happen on other JDKs?
> Any help or suggestions appreciated.
>     -t

> --
> 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+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

--
Softaddicts<lprefonta...@softaddicts.ca> sent by ibisMail from my ipad!

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.