Class: Nashorn::Ruby::Exception

Inherits:
JS::NashornException
  • Object
show all
Defined in:
lib/nashorn/ruby.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ Exception

Returns a new instance of Exception.



364
365
366
367
# File 'lib/nashorn/ruby.rb', line 364

def initialize(error)
  super error.message, error.is_a?(Java::JavaLang::Throwable) ? error : nil
  @thrown = error
end

Instance Attribute Details

#thrownObject (readonly)

Returns the value of attribute thrown.



362
363
364
# File 'lib/nashorn/ruby.rb', line 362

def thrown
  @thrown
end

Instance Method Details

#getThrownObject



369
# File 'lib/nashorn/ruby.rb', line 369

def getThrown; @thrown end