Class: Rhino::Ruby::Exception

Inherits:
JS::JavaScriptException
  • Object
show all
Defined in:
lib/rhino/ruby.rb

Overview

“hack” for ruby errors so that they act as JS thrown objects

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Exception

Returns a new instance of Exception.



257
258
259
# File 'lib/rhino/ruby.rb', line 257

def initialize(value)
  super wrap_value(value)
end