Exception: DBus::Connection::NameRequestError

Inherits:
Exception
  • Object
show all
Defined in:
lib/dbus/connection.rb

Overview

Exception raised when a service name is requested that is not available.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_code) ⇒ NameRequestError

Returns a new instance of NameRequestError.



161
162
163
164
# File 'lib/dbus/connection.rb', line 161

def initialize(error_code)
  @error_code = error_code
  super()
end

Instance Attribute Details

#error_codeInteger (readonly)

Returns one of REQUEST_NAME_REPLY_IN_QUEUE REQUEST_NAME_REPLY_EXISTS.

Returns:

  • (Integer)

    one of REQUEST_NAME_REPLY_IN_QUEUE REQUEST_NAME_REPLY_EXISTS



159
160
161
# File 'lib/dbus/connection.rb', line 159

def error_code
  @error_code
end