Exception: Ruote::ReceivedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ruote/receiver/base.rb

Overview

For remote/received errors, errors whose class is unknown in the ruote worker process.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(classname, *args) ⇒ ReceivedError


46
47
48
49
50
51
52
53
54
55
# File 'lib/ruote/receiver/base.rb', line 46

def initialize(classname, *args)

  trace = Ruote.pop_trace(args)

  super("#{classname}: #{args.first}")

  @classname = classname
  @arguments = args
  set_backtrace(trace)
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments


44
45
46
# File 'lib/ruote/receiver/base.rb', line 44

def arguments
  @arguments
end

#classnameObject (readonly)

Returns the value of attribute classname


43
44
45
# File 'lib/ruote/receiver/base.rb', line 43

def classname
  @classname
end

Instance Method Details

#ruote_detailsObject


57
58
59
60
# File 'lib/ruote/receiver/base.rb', line 57

def ruote_details

  [ @classname, *@arguments ]
end