Exception: V8::ContextError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/v8/context.rb

Direct Known Subclasses

RunawayScriptError

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(caller_name) ⇒ 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