Exception: NodeTask::Error

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

Instance Method Summary collapse

Constructor Details

#initialize(js_error) ⇒ Error

Returns a new instance of Error.



12
13
14
15
# File 'lib/node_task/node_task.rb', line 12

def initialize(js_error)
  @js_error = js_error
  super(js_error[:message])
end

Instance Method Details

#to_sObject



17
18
19
# File 'lib/node_task/node_task.rb', line 17

def to_s
  @js_error[:stack] || @js_error[:message]
end