On Fri, Apr 26, 2013 at 5:55 PM, Michael Gardner > I believe Clojure is wrapping the java.sql.SQLException in a > java.lang.RuntimeException because of reasons[1][2], so you'd need to catch > java.lang.RuntimeException and examine the exception's cause property to > get the "real" exception. > > Agree with Michael that the SQLException is being wrapped in a RuntimeException and that's why it's escaping your catch block, so you'll need to tweak your logic for that.
Having said that you might be interested to know that the mysql jdbc driver has a config option to help with this specific exception with 'zero' timestamps.[1] You probably want to add zeroDateTimeBehavior=convertToNull to your JDBC URL [1] http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-configuration-properties.html -- -- 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/groups/opt_out.