Advertisement
Guest User

Untitled

a guest
Apr 20th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. (with-out-str
  2. (.printStackTrace (RuntimeException.) *out*))
  3. ; java.lang.IllegalArgumentException: No matching method found: printStackTrace for class java.lang.RuntimeException
  4.  
  5. (binding [*err* (java.io.StringWriter.)]
  6. (.printStackTrace (RuntimeException.)))
  7. ; java.lang.RuntimeException
  8. ; at user$eval19447.invoke(form-init1025052489741519269.clj:2)
  9. ; at clojure.lang.Compiler.eval(Compiler.java:6703)
  10. ; at clojure.lang.Compiler.eval(Compiler.java:6666)
  11. ; ...
  12.  
  13. (binding [*err* (java.io.StringWriter.)]
  14. (.printStackTrace (RuntimeException.) *err*))
  15. ; java.lang.IllegalArgumentException: No matching method found: printStackTrace for class java.lang.RuntimeException
  16.  
  17. (let [exception (proxy [RuntimeException] []
  18. (printStackTrace []))]
  19. (.printStackTrace exception))
  20. ; nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement