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.
23 24 25 26 27 |
# File 'lib/dizby/error.rb', line 23 def initialize(error) @reason = error.class.to_s super("#{error.} (#{@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 |