error.h File Reference
#include <exception>
#include <string>
#include <dbus-cxx/dbus-error.h>
Include dependency graph for error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DBus::Error
 Base class of a hierarchy of error objects thrown when exceptional conditions occur. More...
 
class  DBus::ErrorIncorrectDispatchThread
 
class  DBus::ErrorRemoteException
 
class  DBus::ErrorUnknown
 
class  DBus::ErrorBadVariantCast
 
class  DBus::ErrorUnableToParse
 We were unable to parse(something is unimplemented?) More...
 
class  DBus::ErrorInvalidMessage
 An invalid message was tried to be parsed. More...
 
class  DBus::ErrorMessageNestedTooDeep
 

Namespaces

 DBus
 Global DBus namespace, where everything happens.
 

Macros

#define DBUSCXX_ERROR(CPPTYPE, DBUS_ERROR_CODE)
 

Functions

 DBus::DBUSCXX_ERROR (ErrorFailed, DBUSCXX_ERROR_FAILED)
 
 DBus::DBUSCXX_ERROR (ErrorNoMemory, DBUSCXX_ERROR_NO_MEMORY)
 
 DBus::DBUSCXX_ERROR (ErrorServiceUnknown, DBUSCXX_ERROR_SERVICE_UNKNOWN)
 
 DBus::DBUSCXX_ERROR (ErrorNameHasNoOwner, DBUSCXX_ERROR_NAME_HAS_NO_OWNER)
 
 DBus::DBUSCXX_ERROR (ErrorNoReply, DBUSCXX_ERROR_NO_REPLY)
 
 DBus::DBUSCXX_ERROR (ErrorIOError, DBUSCXX_ERROR_IO_ERROR)
 
 DBus::DBUSCXX_ERROR (ErrorBadAddress, DBUSCXX_ERROR_BAD_ADDRESS)
 
 DBus::DBUSCXX_ERROR (ErrorNotSupported, DBUSCXX_ERROR_NOT_SUPPORTED)
 
 DBus::DBUSCXX_ERROR (ErrorLimitsExceeded, DBUSCXX_ERROR_LIMITS_EXCEEDED)
 
 DBus::DBUSCXX_ERROR (ErrorAccessDenied, DBUSCXX_ERROR_ACCESS_DENIED)
 
 DBus::DBUSCXX_ERROR (ErrorAuthFailed, DBUSCXX_ERROR_AUTH_FAILED)
 
 DBus::DBUSCXX_ERROR (ErrorNoServer, DBUSCXX_ERROR_NO_SERVER)
 
 DBus::DBUSCXX_ERROR (ErrorTimeout, DBUSCXX_ERROR_TIMEOUT)
 
 DBus::DBUSCXX_ERROR (ErrorNoNetwork, DBUSCXX_ERROR_NO_NETWORK)
 
 DBus::DBUSCXX_ERROR (ErrorAddressInUse, DBUSCXX_ERROR_ADDRESS_IN_USE)
 
 DBus::DBUSCXX_ERROR (ErrorDisconnected, DBUSCXX_ERROR_DISCONNECTED)
 
 DBus::DBUSCXX_ERROR (ErrorInvalidArgs, DBUSCXX_ERROR_INVALID_ARGS)
 
 DBus::DBUSCXX_ERROR (ErrorFileNotFound, DBUSCXX_ERROR_FILE_NOT_FOUND)
 
 DBus::DBUSCXX_ERROR (ErrorFileExists, DBUSCXX_ERROR_FILE_EXISTS)
 
 DBus::DBUSCXX_ERROR (ErrorUnknownMethod, DBUSCXX_ERROR_UNKNOWN_METHOD)
 
 DBus::DBUSCXX_ERROR (ErrorUnknownObject, DBUSCXX_ERROR_UNKNOWN_OBJECT)
 
 DBus::DBUSCXX_ERROR (ErrorUnknownInterface, DBUSCXX_ERROR_UNKNOWN_INTERFACE)
 
 DBus::DBUSCXX_ERROR (ErrorUnknownProperty, DBUSCXX_ERROR_UNKNOWN_PROPERTY)
 
 DBus::DBUSCXX_ERROR (ErrorPropertyReadOnly, DBUSCXX_ERROR_PROPERTY_READ_ONLY)
 
 DBus::DBUSCXX_ERROR (ErrorTimedOut, DBUSCXX_ERROR_TIMED_OUT)
 
 DBus::DBUSCXX_ERROR (ErrorMatchRuleNotFound, DBUSCXX_ERROR_MATCH_RULE_NOT_FOUND)
 
 DBus::DBUSCXX_ERROR (ErrorMatchRuleInvalid, DBUSCXX_ERROR_MATCH_RULE_INVALID)
 
 DBus::DBUSCXX_ERROR (ErrorSpawnExecFailed, DBUSCXX_ERROR_SPAWN_EXEC_FAILED)
 
 DBus::DBUSCXX_ERROR (ErrorSpawnForkFailed, DBUSCXX_ERROR_SPAWN_FORK_FAILED)
 
 DBus::DBUSCXX_ERROR (ErrorSpawnChildExited, DBUSCXX_ERROR_SPAWN_CHILD_EXITED)
 
 DBus::DBUSCXX_ERROR (ErrorSpawnChildSignaled, DBUSCXX_ERROR_SPAWN_CHILD_SIGNALED)
 
 DBus::DBUSCXX_ERROR (ErrorSpawnFailed, DBUSCXX_ERROR_SPAWN_FAILED)
 
 DBus::DBUSCXX_ERROR (ErrorUnixProcessIdUnknown, DBUSCXX_ERROR_UNIX_PROCESS_ID_UNKNOWN)
 
 DBus::DBUSCXX_ERROR (ErrorInvalidSignature, DBUSCXX_ERROR_INVALID_SIGNATURE)
 
 DBus::DBUSCXX_ERROR (ErrorInvalidFileContent, DBUSCXX_ERROR_INVALID_FILE_CONTENT)
 
 DBus::DBUSCXX_ERROR (ErrorSELinuxSecurityContextUnknown, DBUSCXX_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN)
 
 DBus::DBUSCXX_ERROR (ErrorInvalidCObject, "Invalid C Object")
 
 DBus::DBUSCXX_ERROR (ErrorInvalidTypecast, "Invalid Typecast")
 
 DBus::DBUSCXX_ERROR (ErrorInvalidConnection, "DBus connection is invalid")
 
 DBus::DBUSCXX_ERROR (ErrorInvalidMessageType, "DBus message type does not match the C++ Message object type")
 
 DBus::DBUSCXX_ERROR (ErrorNoConnection, "No connection specified and operation requires a DBus connection")
 
 DBus::DBUSCXX_ERROR (ErrorDeadlock, "Locking a mutex a dbus-cxx thread already owns")
 
 DBus::DBUSCXX_ERROR (ErrorNotOwner, "Unlocking a mutex a dbus-cxx thread doesn't own")
 
 DBus::DBUSCXX_ERROR (ErrorNotInitialized, "DBus::init(bool threadsafe=true) not called")
 
 DBus::DBUSCXX_ERROR (ErrorInvalidAdaptee, "DBus adapter method called, but adaptee is invalid")
 
 DBus::DBUSCXX_ERROR (ErrorDispatcherInitFailed, "DBus::Dispatcher initialization failed")
 
 DBus::DBUSCXX_ERROR (ErrorInvalidSharedPtr, "shared_ptr was invalid")
 
 DBus::DBUSCXX_ERROR (ErrorPollFailed, "poll() syscall failed")
 
 DBus::DBUSCXX_ERROR (ErrorInvalidReturn, "dbuscxx.Error.InvalidReturnValue")
 This error may be thrown if there is an invalid return value from a DBus function that should never have an invalid return value. More...
 
 DBus::DBUSCXX_ERROR (ErrorUnexpectedResponse, "dbuscxx.Error.UnexpectedResponse")
 This error may be thrown if we receive an unexpected response. More...
 

Macro Definition Documentation

◆ DBUSCXX_ERROR

#define DBUSCXX_ERROR (   CPPTYPE,
  DBUS_ERROR_CODE 
)
Value:
class CPPTYPE : public Error { \
public: \
CPPTYPE( const char* message = nullptr ) \
: Error( DBUS_ERROR_CODE, message ) {} \
CPPTYPE( std::string message ) \
: Error( DBUS_ERROR_CODE, message ) {} \
}