Guest User

Untitled

a guest
Apr 20th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.06 KB | None | 0 0
  1. ## code
  2. class A
  3. def foo
  4. raise
  5. end
  6. end
  7.  
  8. class B
  9. def bar
  10. A.new.foo
  11. end
  12. end
  13.  
  14. B.new.bar
  15. ## trace
  16. ~/NetBeansProjects/jruby ➔ jruby -X-C test.rb
  17. org.jruby.exceptions.RaiseException:
  18. at org.jruby.exceptions.JumpException.originalFillInStackTrace(JumpException.java:103)
  19. at org.jruby.exceptions.RaiseException.fillInStackTrace(RaiseException.java:145)
  20. at java.lang.Throwable.<init>(Throwable.java:196)
  21. at java.lang.Exception.<init>(Exception.java:41)
  22. at java.lang.RuntimeException.<init>(RuntimeException.java:43)
  23. at org.jruby.exceptions.JumpException.<init>(JumpException.java:87)
  24. at org.jruby.exceptions.RaiseException.<init>(RaiseException.java:60)
  25. at org.jruby.RubyKernel.raise(RubyKernel.java:775)
  26. at org.jruby.RubyKernelInvoker$raise_s_method_0_3.call(Unknown Source)
  27. at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:70)
  28. at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:116)
  29. at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:270)
  30. at org.jruby.evaluator.ASTInterpreter.vcallNode(ASTInterpreter.java:1792)
  31. at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:485)
  32. at A.foo(test.rb:3)
  33. at org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:197)
  34. at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:173)
  35. at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:240)
  36. at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:101)
  37. at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:238)
  38. at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:682)
  39. at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:309)
  40. at B.bar(test.rb:9)
  41. at org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:197)
  42. at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:173)
  43. at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:240)
  44. at org.jruby.runtime.CallSite$InlineCachingCallSite.cacheAndCall(CallSite.java:101)
  45. at org.jruby.runtime.CallSite$InlineCachingCallSite.call(CallSite.java:238)
  46. at org.jruby.evaluator.ASTInterpreter.callNode(ASTInterpreter.java:682)
  47. at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:309)
  48. at org.jruby.evaluator.ASTInterpreter.blockNode(ASTInterpreter.java:632)
  49. at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:303)
  50. at org.jruby.evaluator.ASTInterpreter.rootNode(ASTInterpreter.java:1665)
  51. at org.jruby.evaluator.ASTInterpreter.evalInternal(ASTInterpreter.java:459)
  52. at org.jruby.evaluator.ASTInterpreter.eval(ASTInterpreter.java:169)
  53. at org.jruby.Ruby.runInterpreter(Ruby.java:529)
  54. at org.jruby.Ruby.runNormally(Ruby.java:435)
  55. at org.jruby.Ruby.runFromMain(Ruby.java:311)
  56. at org.jruby.Main.run(Main.java:144)
  57. at org.jruby.Main.run(Main.java:89)
  58. at org.jruby.Main.main(Main.java:80)
  59. test.rb:3:in `foo': unhandled exception
  60. from test.rb:9:in `bar'
  61. from test.rb:13
Add Comment
Please, Sign In to add comment