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.



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

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.



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

def dbus_message
  @dbus_message
end