Exception: DBus::Error

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

Overview

A helper exception on errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg) ⇒ Error

Returns a new instance of Error.



276
277
278
279
# File 'lib/dbus/message.rb', line 276

def initialize(msg)
  super(msg.error_name + ": " + msg.params.join(", "))
  @dbus_message = msg
end

Instance Attribute Details

#dbus_messageObject (readonly)

Returns the value of attribute dbus_message.



275
276
277
# File 'lib/dbus/message.rb', line 275

def dbus_message
  @dbus_message
end