Exception: Dizby::RemoteDistributedError
- Inherits:
-
DistributedError
- Object
- RuntimeError
- DistributedError
- Dizby::RemoteDistributedError
- Defined in:
- lib/dizby/error.rb
Instance Attribute Summary collapse
-
#reason
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(error) ⇒ RemoteDistributedError
constructor
A new instance of RemoteDistributedError.
Constructor Details
#initialize(error) ⇒ RemoteDistributedError
Returns a new instance of RemoteDistributedError.
27 28 29 30 31 |
# File 'lib/dizby/error.rb', line 27 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.
33 34 35 |
# File 'lib/dizby/error.rb', line 33 def reason @reason end |