Exception: DRab::DRabRemoteError
- Defined in:
- lib/drab/drab.rb
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(error) ⇒ DRabRemoteError
constructor
A new instance of DRabRemoteError.
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.} (#{error.class})") set_backtrace(error.backtrace) end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
85 86 87 |
# File 'lib/drab/drab.rb', line 85 def reason @reason end |