Exception: Dizby::RemoteDistributedError

Inherits:
DistributedError show all
Defined in:
lib/dizby/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ RemoteDistributedError

Returns a new instance of RemoteDistributedError.


21
22
23
24
25
# File 'lib/dizby/error.rb', line 21

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

Instance Attribute Details

#reason (readonly)

Returns the value of attribute reason


27
28
29
# File 'lib/dizby/error.rb', line 27

def reason
  @reason
end