dbus-cxx logo
Classes | Namespaces | Macros | Functions
error.h File Reference
#include <exception>
#include <dbus-cxx/pointer.h>
#include <dbus/dbus.h>
#include <string>
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...
 

Namespaces

 DBus
 

Macros

#define DBUSCXX_ERROR(CPPTYPE, DBUS_ERROR_CODE)
 

Functions

 DBus::DBUSCXX_ERROR (ErrorFailed, DBUS_ERROR_FAILED)
 
 DBus::DBUSCXX_ERROR (ErrorNoMemory, DBUS_ERROR_NO_MEMORY)
 
 DBus::DBUSCXX_ERROR (ErrorServiceUnknown, DBUS_ERROR_SERVICE_UNKNOWN)
 
 DBus::DBUSCXX_ERROR (ErrorNameHasNoOwner, DBUS_ERROR_NAME_HAS_NO_OWNER)
 
 DBus::DBUSCXX_ERROR (ErrorNoReply, DBUS_ERROR_NO_REPLY)
 
 DBus::DBUSCXX_ERROR (ErrorIOError, DBUS_ERROR_IO_ERROR)
 
 DBus::DBUSCXX_ERROR (ErrorBadAddress, DBUS_ERROR_BAD_ADDRESS)
 
 DBus::DBUSCXX_ERROR (ErrorNotSupported, DBUS_ERROR_NOT_SUPPORTED)
 
 DBus::DBUSCXX_ERROR (ErrorLimitsExceeded, DBUS_ERROR_LIMITS_EXCEEDED)
 
 DBus::DBUSCXX_ERROR (ErrorAccessDenied, DBUS_ERROR_ACCESS_DENIED)
 
 DBus::DBUSCXX_ERROR (ErrorAuthFailed, DBUS_ERROR_AUTH_FAILED)
 
 DBus::DBUSCXX_ERROR (ErrorNoServer, DBUS_ERROR_NO_SERVER)
 
 DBus::DBUSCXX_ERROR (ErrorTimeout, DBUS_ERROR_TIMEOUT)
 
 DBus::DBUSCXX_ERROR (ErrorNoNetwork, DBUS_ERROR_NO_NETWORK)
 
 DBus::DBUSCXX_ERROR (ErrorAddressInUse, DBUS_ERROR_ADDRESS_IN_USE)
 
 DBus::DBUSCXX_ERROR (ErrorDisconnected, DBUS_ERROR_DISCONNECTED)
 
 DBus::DBUSCXX_ERROR (ErrorInvalidArgs, DBUS_ERROR_INVALID_ARGS)
 
 DBus::DBUSCXX_ERROR (ErrorFileNotFound, DBUS_ERROR_FILE_NOT_FOUND)
 
 DBus::DBUSCXX_ERROR (ErrorFileExists, DBUS_ERROR_FILE_EXISTS)
 
 DBus::DBUSCXX_ERROR (ErrorUnknownMethod, DBUS_ERROR_UNKNOWN_METHOD)
 
 DBus::DBUSCXX_ERROR (ErrorTimedOut, DBUS_ERROR_TIMED_OUT)
 
 DBus::DBUSCXX_ERROR (ErrorMatchRuleNotFound, DBUS_ERROR_MATCH_RULE_NOT_FOUND)
 
 DBus::DBUSCXX_ERROR (ErrorMatchRuleInvalid, DBUS_ERROR_MATCH_RULE_INVALID)
 
 DBus::DBUSCXX_ERROR (ErrorSpawnExecFailed, DBUS_ERROR_SPAWN_EXEC_FAILED)
 
 DBus::DBUSCXX_ERROR (ErrorSpawnForkFailed, DBUS_ERROR_SPAWN_FORK_FAILED)
 
 DBus::DBUSCXX_ERROR (ErrorSpawnChildExited, DBUS_ERROR_SPAWN_CHILD_EXITED)
 
 DBus::DBUSCXX_ERROR (ErrorSpawnChildSignaled, DBUS_ERROR_SPAWN_CHILD_SIGNALED)
 
 DBus::DBUSCXX_ERROR (ErrorSpawnFailed, DBUS_ERROR_SPAWN_FAILED)
 
 DBus::DBUSCXX_ERROR (ErrorUnixProcessIdUnknown, DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN)
 
 DBus::DBUSCXX_ERROR (ErrorInvalidSignature, DBUS_ERROR_INVALID_SIGNATURE)
 
 DBus::DBUSCXX_ERROR (ErrorInvalidFileContent, DBUS_ERROR_INVALID_FILE_CONTENT)
 
 DBus::DBUSCXX_ERROR (ErrorSELinuxSecurityContextUnknown, DBUS_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")
 

Macro Definition Documentation

#define DBUSCXX_ERROR (   CPPTYPE,
  DBUS_ERROR_CODE 
)
Value:
class CPPTYPE : public Error { \
protected: \
CPPTYPE( const char* message = NULL ) \
: Error( DBUS_ERROR_CODE, message ) {} \
public: \
typedef DBusCxxPointer<CPPTYPE> pointer; \
static pointer create( const char* message = NULL ) { \
return pointer( new CPPTYPE(message) ); \
} \
}

Generated on Sun Mar 19 2017 14:54:27 for dbus-cxx by doxygen 1.8.8