Class: Nashorn::Ruby::Exception
- Inherits:
-
JS::NashornException
- Object
- JS::NashornException
- Nashorn::Ruby::Exception
- Defined in:
- lib/nashorn/ruby.rb
Instance Attribute Summary collapse
-
#thrown ⇒ Object
readonly
Returns the value of attribute thrown.
Instance Method Summary collapse
- #getThrown ⇒ Object
-
#initialize(error) ⇒ Exception
constructor
A new instance of Exception.
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., error.is_a?(Java::JavaLang::Throwable) ? error : nil @thrown = error end |
Instance Attribute Details
#thrown ⇒ Object (readonly)
Returns the value of attribute thrown.
362 363 364 |
# File 'lib/nashorn/ruby.rb', line 362 def thrown @thrown end |
Instance Method Details
#getThrown ⇒ Object
369 |
# File 'lib/nashorn/ruby.rb', line 369 def getThrown; @thrown end |