dbus-cxx logo
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DBus::Error Class Reference

Base class of a hierarchy of error objects thrown when exceptional conditions occur. More...

#include <error.h>

Inherits std::exception.

Public Types

typedef DBusCxxPointer< Errorpointer
 

Public Member Functions

 ~Error () throw ()
 
const char * what () const throw ()
 
const char * name () const
 
const char * message () const
 
void set (const char *name, const char *message)
 parameters MUST be static strings More...
 
bool is_set () const
 
 operator bool () const
 
DBusError * cobj ()
 

Static Public Member Functions

static pointer create ()
 
static pointer create (DBusError *cobj)
 
static pointer create (const char *name, const char *message)
 
static pointer create (Message &)
 

Protected Member Functions

 Error ()
 
 Error (DBusError *cobj)
 
 Error (const char *name, const char *message=NULL)
 
 Error (Message &)
 

Protected Attributes

DBusError m_cobj
 

Detailed Description

Base class of a hierarchy of error objects thrown when exceptional conditions occur.

Author
Rick L Vinyard Jr rviny.nosp@m.ard@.nosp@m.cs.nm.nosp@m.su.e.nosp@m.du

Member Typedef Documentation

typedef DBusCxxPointer<Error> DBus::Error::pointer

Constructor & Destructor Documentation

DBus::Error::Error ( )
protected

References m_cobj.

Referenced by create().

DBus::Error::Error ( DBusError *  cobj)
protected

References m_cobj.

DBus::Error::Error ( const char *  name,
const char *  message = NULL 
)
protected

References m_cobj, and set().

DBus::Error::Error ( Message m)
protected

References DBus::Message::cobj(), and m_cobj.

DBus::Error::~Error ( )
throw (
)

References m_cobj.

Member Function Documentation

DBusError * DBus::Error::cobj ( )

References m_cobj.

Error::pointer DBus::Error::create ( )
static
Error::pointer DBus::Error::create ( DBusError *  cobj)
static

References Error().

Error::pointer DBus::Error::create ( const char *  name,
const char *  message 
)
static

References Error().

Error::pointer DBus::Error::create ( Message message)
static

References Error().

bool DBus::Error::is_set ( ) const

References m_cobj.

const char * DBus::Error::message ( ) const

References m_cobj.

const char * DBus::Error::name ( ) const

References m_cobj.

DBus::Error::operator bool ( ) const
void DBus::Error::set ( const char *  name,
const char *  message 
)

parameters MUST be static strings

References m_cobj.

Referenced by Error().

const char * DBus::Error::what ( ) const
throw (
)

References m_cobj.

Member Data Documentation

DBusError DBus::Error::m_cobj
protected

The documentation for this class was generated from the following files:

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