DRb::DRbRemoteError

class DRb::DRbRemoteError

Parent:
DRb::DRbError

An exception wrapping an error object

Attributes

reason[R]

the class of the error, as a string.

Public Class Methods

new(error) Show source

Creates a new remote error that wraps the Exception error

Calls superclass method Exception.new
# File lib/drb/drb.rb, line 435
def initialize(error)
  @reason = error.class.to_s
  super("#{error.message} (#{error.class})")
  set_backtrace(error.backtrace)
end

Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部