exception1.scm 187 B

123456789
  1. (try-catch
  2. ((lambda ()
  3. (try-finally
  4. 1
  5. (throw (java.lang.Exception)))))
  6. (ex java.lang.Throwable
  7. (format #t "Caught ~a.~%" ex)))
  8. ;; Output: Caught java.lang.Exception.