Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (7 sloc) 215 Bytes
require 'java'
Java::define_exception_handler "java.lang.NumberFormatException" do |e|
puts e.java_type
p e.methods
puts e.java_class.java_method(:getMessage).invoke(e)
end
java.lang.Long.parseLong("23aa")