Exception: DBus::Connection::NameRequestError
- Inherits:
-
Exception
- Object
- Exception
- DBus::Connection::NameRequestError
- Defined in:
- lib/dbus/connection.rb
Overview
Exception raised when a service name is requested that is not available.
Instance Attribute Summary collapse
-
#error_code ⇒ Integer
readonly
One of REQUEST_NAME_REPLY_IN_QUEUE REQUEST_NAME_REPLY_EXISTS.
Instance Method Summary collapse
-
#initialize(error_code) ⇒ NameRequestError
constructor
A new instance of NameRequestError.
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_code ⇒ Integer (readonly)
Returns 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 |