You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The exception classes derive directly from various python exceptions, rather than sharing a single dbus-next-specific superclass.
Because of this, distinguishing dbus errors from other errors requires application code to wrap dbus-next calls in their own try/except blocks, and wrap other calls in separate try/except blocks (or else catch every dbus-next exception individually by name). The result is very cluttered code.
A coherent exception hierarchy would make dbus-next much nicer to work with, and allow application code to be simpler and easier to read.
The text was updated successfully, but these errors were encountered:
The exception classes derive directly from various python exceptions, rather than sharing a single dbus-next-specific superclass.
Because of this, distinguishing dbus errors from other errors requires application code to wrap dbus-next calls in their own try/except blocks, and wrap other calls in separate try/except blocks (or else catch every dbus-next exception individually by name). The result is very cluttered code.
A coherent exception hierarchy would make dbus-next much nicer to work with, and allow application code to be simpler and easier to read.
The text was updated successfully, but these errors were encountered: