Exception: DRab::DRabRemoteError

Inherits:
DRabError
  • Object
show all
Defined in:
lib/drab/drab.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ DRabRemoteError

Returns a new instance of DRabRemoteError.



79
80
81
82
83
# File 'lib/drab/drab.rb', line 79

def initialize(error)
  @reason = error.class.to_s
  super("#{error.message} (#{error.class})")
  set_backtrace(error.backtrace)
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



85
86
87
# File 'lib/drab/drab.rb', line 85

def reason
  @reason
end