Looking at the source ARef.java, I see that the validate method will throw an IllegalStateException if the validator function either returns false or throws a non-RuntimeException. The setValidator method immediately validates the Ref using the new validator function. It always throws a RuntimeException when validation fails. Why doesn't it just allow the exception thrown by the validate function to propagate out instead of wrapping it in a RuntimeException? That would make it have the same result as calling validate.
-- R. Mark Volkmann Object Computing, Inc. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---