Skip to content

Instantly share code, notes, and snippets.

@Raynes
Created August 23, 2010 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raynes/546158 to your computer and use it in GitHub Desktop.
Save Raynes/546158 to your computer and use it in GitHub Desktop.
user> (/ 1 0)
; Evaluation aborted.
user> (.getMessage *e)
"java.lang.ArithmeticException: Divide by zero (NO_SOURCE_FILE:0)"
user> (println (.getMessage *e))
java.lang.ArithmeticException: Divide by zero (NO_SOURCE_FILE:0)
nil
user> (try (/ 1 0) (catch Exception e (println (.getMessage e))))
Divide by zero
nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment