Skip to content

Instantly share code, notes, and snippets.

@LeifWarner
Created March 4, 2013 22:29
Show Gist options
  • Save LeifWarner/5086275 to your computer and use it in GitHub Desktop.
Save LeifWarner/5086275 to your computer and use it in GitHub Desktop.
require 'java'
require '/usr/share/scala/lib/scala-library.jar'
java_import 'Hello'
class Exceptionizer
attr_reader :exc
def foo
begin
a = Hello.new
rescue Exception => e
exc = e
end
end
end
class Hello { throw new Exception("broke") }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment