Exception: Fasten::WorkerError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(origin) ⇒ WorkerError

Returns a new instance of WorkerError.



11
12
13
14
# File 'lib/fasten/worker.rb', line 11

def initialize(origin)
  super "#{origin.class} #{origin.message}"
  @backtrace = origin.backtrace
end

Instance Attribute Details

#backtraceObject (readonly)

Returns the value of attribute backtrace.



9
10
11
# File 'lib/fasten/worker.rb', line 9

def backtrace
  @backtrace
end