|
edelib
1.0
|
A class representing D-Bus error. More...
#include <edelib/EdbusError.h>
Public Member Functions | |
| EdbusError () | |
| ~EdbusError () | |
| EdbusError (const DBusError *err) | |
| EdbusError (const EdbusError &other) | |
| EdbusError & | operator= (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 |
A class representing D-Bus error.
| EdbusError | ( | ) |
Create invalid error object
| ~EdbusError | ( | ) |
Destroys object
| EdbusError | ( | const DBusError * | err | ) |
Create error object from DBusError
| EdbusError | ( | const EdbusError & | other | ) |
Create error object from another object
| EdbusError | ( | EdbusErrorType | t, |
| const char * | msg | ||
| ) |
Explicitly create error with given EdbusErrorType and text
| const char* message | ( | void | ) | const |
Returns a string describing the error. It will be NULL if error is invalid
| const char* name | ( | void | ) | const |
Returns the D-Bus error name. It will be NULL if error is invalid
| EdbusError& operator= | ( | const EdbusError & | other | ) |
Assing another object
| EdbusErrorType type | ( | void | ) | const |
Returns error type
|
inline |
Returns true if error object contains valid type (any except EDBUS_ERROR_INVALID)
References edelib::EDBUS_ERROR_INVALID.
1.8.11