Exception: V8::ContextError
- Defined in:
- lib/v8/context.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(caller_name) ⇒ ContextError
constructor
A new instance of ContextError.
Constructor Details
#initialize(caller_name) ⇒ ContextError
Returns a new instance of ContextError.
73 74 75 |
# File 'lib/v8/context.rb', line 73 def initialize(caller_name) super("tried to call method '#{caller_name} without an open context") end |
Class Method Details
.check_open(caller_name) ⇒ Object
76 77 78 |
# File 'lib/v8/context.rb', line 76 def self.check_open(caller_name) raise new(caller_name) unless C::Context::InContext() end |