Re: Help needed regarding the use of macro

2010-01-25 Thread Meikel Brandmeyer
Hi, On Jan 25, 12:41 pm, Manish wrote: > I am new to clojure. I want to use try-catch block to the  (.getPage > *wc* ~url) statement of code. But I am getting this error: > java.lang.Exception: Can't bind qualified name:nlplabs.webfetch.agent/ > exception > > Would u pls help me to sort out this

Re: Help needed regarding the use of macro

2010-01-25 Thread Christophe Grand
Hi On Mon, Jan 25, 2010 at 12:41 PM, Manish wrote: > Hi, > I am new to clojure. I want to use try-catch block to the  (.getPage > *wc* ~url) statement of code. But I am getting this error: > java.lang.Exception: Can't bind qualified name:nlplabs.webfetch.agent/ > exception > > Would u pls help me

Re: Help needed regarding the use of macro

2010-01-25 Thread Steve Purcell
I think you'll have to use "exception#" instead of "exception", in order to generate a local symbol. Otherwise, the quoting will try to resolve "exception" in the current namespace. Also, don't expand "~url" more than once -- what if the expression passed for "url" has side effects? It would ge

Re: Help needed regarding the use of macro

2010-01-25 Thread Manish
Thanx for ur quick response, And its not making difference by changing "exception" to "e". I am still getting this error: java.lang.Exception: Can't bind qualified name:nlplabs.webfetch.agent/ e Thanx Regards Manish Zedwal On Jan 25, 5:03 pm, Michael Wood wrote: > 2010/1/25 Manish : > > > > > Hi

Re: Help needed regarding the use of macro

2010-01-25 Thread Manish
Nothing is declared in this namespace as "exception" On Jan 25, 5:03 pm, Michael Wood wrote: > 2010/1/25 Manish : > > > > > Hi, > > I am new to clojure. I want to use try-catch block to the  (.getPage > > *wc* ~url) statement of code. But I am getting this error: > > java.lang.Exception: Can't bi

Re: Help needed regarding the use of macro

2010-01-25 Thread Michael Wood
2010/1/25 Manish : > Hi, > I am new to clojure. I want to use try-catch block to the  (.getPage > *wc* ~url) statement of code. But I am getting this error: > java.lang.Exception: Can't bind qualified name:nlplabs.webfetch.agent/ > exception > > Would u pls help me to sort out this problem? > > Tha

Help needed regarding the use of macro

2010-01-25 Thread Manish
Hi, I am new to clojure. I want to use try-catch block to the (.getPage *wc* ~url) statement of code. But I am getting this error: java.lang.Exception: Can't bind qualified name:nlplabs.webfetch.agent/ exception Would u pls help me to sort out this problem? Thanx in advance Code snippet: (ns nl