It would be nice if someone updated the wiki with a new example.
I don't understand how the gen-class stuff is supposed to work.
Why doesn't the following work?
(gen-class
:name MyException
:extends [Exception])
(defn user-exception-test []
(try
(throw (new MyException "msg: user exception was here!!"))
(catch MyException e
(prn "caught exception" e))
(finally (prn "finally clause invoked!!!"))))
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---