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.



253
254
255
# File 'lib/rhino/ruby.rb', line 253

def initialize(value)
  super wrap_value(value)
end