Exception: DRb::DRbRemoteError
- Defined in:
- lib/drb/drb.rb
Overview
An exception wrapping an error object
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
the class of the error, as a string.
Instance Method Summary collapse
-
#initialize(error) ⇒ DRbRemoteError
constructor
Creates a new remote error that wraps the Exception
error
.
Constructor Details
#initialize(error) ⇒ DRbRemoteError
Creates a new remote error that wraps the Exception error
433 434 435 436 437 |
# File 'lib/drb/drb.rb', line 433 def initialize(error) @reason = error.class.to_s super("#{error.} (#{error.class})") set_backtrace(error.backtrace) end |
Instance Attribute Details
#reason ⇒ Object (readonly)
the class of the error, as a string.
440 441 442 |
# File 'lib/drb/drb.rb', line 440 def reason @reason end |