QtGStreamer 1.2.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Related Symbols | List of all members
QGlib::Error Class Reference

#include <QGlib/Error>

Inherits std::exception.

Public Member Functions

 Error (GError *error=NULL)
 
 Error (Quark domain, int code, const QString &message)
 
 Error (const Error &other)
 
Erroroperator= (const Error &other)
 
virtual const char * what () const throw ()
 
Quark domain () const
 
int code () const
 
QString message () const
 
 operator GError * ()
 
 operator const GError * () const
 

Static Public Member Functions

static Error copy (GError *error)
 

Related Symbols

(Note that these are not member symbols.)

QDebug operator<< (QDebug dbg, const Error &error)
 

Detailed Description

Wrapper class for GError.

Examples
examples/recorder/main.cpp, and examples/voip/main.cpp.

Definition at line 30 of file error.h.

Constructor & Destructor Documentation

◆ Error() [1/3]

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.

◆ Error() [2/3]

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.

◆ Error() [3/3]

QGlib::Error::Error ( const Error other)

Definition at line 40 of file error.cpp.

◆ ~Error()

QGlib::Error::~Error ( )
throw (
)
virtual

Definition at line 58 of file error.cpp.

Member Function Documentation

◆ copy()

Error QGlib::Error::copy ( GError *  error)
static

Definition at line 35 of file error.cpp.

◆ operator=()

Error & QGlib::Error::operator= ( const Error other)

Definition at line 46 of file error.cpp.

◆ what()

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.

◆ domain()

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.

◆ code()

int QGlib::Error::code ( ) const
Returns
a code that describes the error

Definition at line 75 of file error.cpp.

◆ message()

QString QGlib::Error::message ( ) const
Returns
a human-readable message that describes the error
Examples
examples/recorder/main.cpp.

Definition at line 80 of file error.cpp.

◆ operator GError *()

QGlib::Error::operator GError * ( )
Returns
a pointer to the underlying GError
Note
no copy is made

Definition at line 85 of file error.cpp.

◆ operator const GError *()

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.

Friends And Related Symbol Documentation

◆ operator<<()

QDebug operator<< ( QDebug  dbg,
const Error error 
)
related

Definition at line 95 of file error.cpp.


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