Skip to content

Provide more details about DBus Path when recieve Objert already exported #12

@magillus

Description

@magillus

To better handle DBus exportObject exception we should provide Path to the exported object on the error.

example stacktrace doesn't define what is already exported.

org.freedesktop.dbus.exceptions.DBusException: Object already exported
	at org.freedesktop.dbus.AbstractConnection.exportObject(AbstractConnection.java:402)
	at it.tangodev.ble.BleCharacteristic.export(BleCharacteristic.java:102)
	at it.tangodev.ble.BleService.export(BleService.java:58)
	at it.tangodev.ble.BleApplication.export(BleApplication.java:230)
	at it.tangodev.ble.BleApplication.start(BleApplication.java:94)

I will add PR for this, since I need this at my usage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions