Exception: Wands::JavaScript::JSError
- Inherits:
-
StandardError
- Object
- StandardError
- Wands::JavaScript::JSError
- Defined in:
- lib/wands/java_script/js_error.rb
Overview
Represents a JavaScript error event, inheriting from Ruby’s Error class.
Instance Attribute Summary collapse
-
#stack ⇒ Object
readonly
Returns the value of attribute stack.
Instance Method Summary collapse
-
#initialize(js_error_event, message = nil) ⇒ JSError
constructor
A new instance of JSError.
Constructor Details
#initialize(js_error_event, message = nil) ⇒ JSError
Returns a new instance of JSError.
9 10 11 12 |
# File 'lib/wands/java_script/js_error.rb', line 9 def initialize(js_error_event, = nil) super("#{message}#{dig_js_values(js_error_event, :message)}") @stack = dig_js_values(js_error_event, :error, :stack) end |
Instance Attribute Details
#stack ⇒ Object (readonly)
Returns the value of attribute stack.
7 8 9 |
# File 'lib/wands/java_script/js_error.rb', line 7 def stack @stack end |