   org.jruby.exceptions.RaiseException [e]
   (.getException e))
 
+;; Exceptions aren't IRubyObjects
 (defmethod ->ruby
   java.lang.Exception [e]
-  e)
+  (let [w (StringWriter.)
+        pw (PrintWriter. w)]
+    (.printStackTrace e pw)
+    (.toString w)))
 
 (defmethod ->ruby
   clojure.lang.Sequential [v]

(defmethod ->ruby
  nil [n]
  (-> (ruby) (.getNil)))

(def sample-objectid-string "4ee6911fe4b05e6a4d3605fe")


  (ensure-runtime)
  (-> runtime deref (.get)))

;; Each of these must return an IRubyObject.
(defmulti ->ruby
  "Convert Ruby data to Clojure data"
  class)
