#include <QGlib/Error>
Inherits std::exception.
|
static Error | copy (GError *error) |
|
|
(Note that these are not member functions.)
|
QDebug | operator<< (QDebug dbg, const Error &error) |
|
Wrapper class for GError.
- Examples:
- examples/recorder/main.cpp, and examples/voip/main.cpp.
Definition at line 30 of file error.h.
QGlib::Error::Error |
( |
GError * |
error = NULL | ) |
|
Wraps an existing GError into an Error.
- Note
- the constructed Error takes ownership of error
Definition at line 23 of file error.cpp.
QGlib::Error::Error |
( |
Quark |
domain, |
|
|
int |
code, |
|
|
const QString & |
message |
|
) |
| |
Creates a new Error with the given domain, code and message
Definition at line 29 of file error.cpp.
const char * QGlib::Error::what |
( |
| ) |
const |
throw | ( | |
| ) | | |
|
virtual |
Use message() instead. This method is provided to implement the std::exception interface.
Definition at line 65 of file error.cpp.
Quark QGlib::Error::domain |
( |
| ) |
const |
- Returns
- the domain of the error. The domain indicates the module where the error has happened.
Definition at line 70 of file error.cpp.
int QGlib::Error::code |
( |
| ) |
const |
- Returns
- a code that describes the error
Definition at line 75 of file error.cpp.
QString QGlib::Error::message |
( |
| ) |
const |
QGlib::Error::operator GError * |
( |
| ) |
|
- Returns
- a pointer to the underlying GError
- Note
- no copy is made
Definition at line 85 of file error.cpp.
QGlib::Error::operator const GError * |
( |
| ) |
const |
- Returns
- a const pointer to the underlying GError
- Note
- no copy is made
Definition at line 90 of file error.cpp.
QDebug operator<< |
( |
QDebug |
dbg, |
|
|
const Error & |
error |
|
) |
| |
|
related |
The documentation for this class was generated from the following files: