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.


23
24
25
26
27
# File 'lib/dizby/error.rb', line 23

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


29
30
31
# File 'lib/dizby/error.rb', line 29

def reason
  @reason
end