Exception: SyntaxTree::YARV::VM::ThrownError
- Inherits:
-
StandardError
- Object
- StandardError
- SyntaxTree::YARV::VM::ThrownError
- Defined in:
- lib/syntax_tree/yarv/vm.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, backtrace) ⇒ ThrownError
constructor
A new instance of ThrownError.
Constructor Details
#initialize(value, backtrace) ⇒ ThrownError
Returns a new instance of ThrownError.
79 80 81 82 83 |
# File 'lib/syntax_tree/yarv/vm.rb', line 79 def initialize(value, backtrace) super("This error was thrown by the Ruby VM.") @value = value set_backtrace(backtrace) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
77 78 79 |
# File 'lib/syntax_tree/yarv/vm.rb', line 77 def value @value end |