edelib 2.1.0
EdbusError Class Reference

A class representing D-Bus error. More...

#include <edelib/EdbusError.h>

Public Member Functions

 EdbusError ()
 
 ~EdbusError ()
 
 EdbusError (const DBusError *err)
 
 EdbusError (const EdbusError &other)
 
EdbusErroroperator= (const EdbusError &other)
 
 EdbusError (EdbusErrorType t, const char *msg)
 
EdbusErrorType type (void) const
 
const char * name (void) const
 
const char * message (void) const
 
bool valid (void) const
 

Detailed Description

A class representing D-Bus error.

Constructor & Destructor Documentation

◆ EdbusError() [1/4]

Create invalid error object

◆ ~EdbusError()

~EdbusError ( )

Destroys object

◆ EdbusError() [2/4]

EdbusError ( const DBusError * err)

Create error object from DBusError

◆ EdbusError() [3/4]

EdbusError ( const EdbusError & other)

Create error object from another object

◆ EdbusError() [4/4]

EdbusError ( EdbusErrorType t,
const char * msg )

Explicitly create error with given EdbusErrorType and text

Member Function Documentation

◆ message()

const char * message ( void ) const

Returns a string describing the error. It will be NULL if error is invalid

◆ name()

const char * name ( void ) const

Returns the D-Bus error name. It will be NULL if error is invalid

◆ operator=()

EdbusError & operator= ( const EdbusError & other)

Assing another object

◆ type()

EdbusErrorType type ( void ) const

Returns error type

◆ valid()

bool valid ( void ) const
inline

Returns true if error object contains valid type (any except EDBUS_ERROR_INVALID)

References edelib::EDBUS_ERROR_INVALID.


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