Exceptions

Exceptions will be massively used for error or unpleasant states signalization during function or method execution. This should completelly replace C-like return value status codes. Hierarchy of all kind of exceptions can be constructed and modified here and then converted into a code:

  • Exception (Basic.h) - Base class for all exceptions.
    • EError (Basic.h) - Base class for all error state exceptions.
      • EIOError (Basic.h) - Exception thrown due input/output operation errors.
        • EReadError (Basic.h) - Exception thrown due errors in read operation.
        • EWriteError (Basic.h) - Exception thrown due errors in write operation.
        • EConnectionError (DBus.h) - Exception for errors in D-Bus connection negotiation.
      • EExecutionError (Basic.h) - Exception for errors in code execution mechanism.
      • EArgumentError (DBus.h) - Exception for errors in argument type or count in D-Bus calls.
    • ENotImplemented (Basic.h) - Exception thrown when not implemented or pure virtual function/method is executed.
    • ENotFound (Basic.h) - Exception thrown when expected item or other object is not found.
    • EAlreadyExists (Basic.h) - Exception throw when item or other object should not exist but it does.
      • ENotPrimaryOwner (DBus.h) - Exception throw when requested D-Bus name already exists on session bus.

Discussion

You have no rights to see this discussion.