Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## code
- class A
- def foo
- raise
- end
- end
- class B
- def bar
- A.new.foo
- end
- end
- B.new.bar
- ## trace
- ~/NetBeansProjects/jruby ➔ jruby -X-C test.rb
- org.jruby.exceptions.RaiseException:
- at org.jruby.exceptions.JumpException.originalFillInStackTrace(JumpException.java:103)
- at org.jruby.exceptions.RaiseException.fillInStackTrace(RaiseException.java:145)
- at java.lang.Throwable.<init>(Throwable.java:196)
- at java.lang.Exception.<init>(Exception.java:41)
- at java.lang.RuntimeException.<init>(RuntimeException.java:43)
- at org.jruby.exceptions.JumpException.<init>(JumpException.java:87)
- at org.jruby.exceptions.RaiseException.<init>(RaiseException.java:60)
- at org.jruby.RubyKernel.raise(RubyKernel.java:775)
- at org.jruby.RubyKernelInvoker$raise_s_method_0_3.call(Unknown Source)
- at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:70)
- at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:116)
- at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:270)
- at org.jruby.evaluator.ASTInterpreter.vcallNode(ASTInterpreter.java:1792)
- at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:485)
- at A.foo(test.rb:3)
- at org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:197)
- at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:173)
- at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:240)
- at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:101)
- at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:238)
- at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:682)
- at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:309)
- at B.bar(test.rb:9)
- at org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:197)
- at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:173)
- at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:240)
- at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:101)
- at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:238)
- at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:682)
- at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:309)
- at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:632)
- at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:303)
- at org.jruby.evaluator.ASTInterpreter.rootNode(ASTInterpreter.java:1665)
- at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:459)
- at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
- at org.jruby.Ruby.runInterpreter(Ruby.java:529)
- at org.jruby.Ruby.runNormally(Ruby.java:435)
- at org.jruby.Ruby.runFromMain(Ruby.java:311)
- at org.jruby.Main.run(Main.java:144)
- at org.jruby.Main.run(Main.java:89)
- at org.jruby.Main.main(Main.java:80)
- test.rb:3:in `foo': unhandled exception
- from test.rb:9:in `bar'
- from test.rb:13
Add Comment
Please, Sign In to add comment