glibmm 2.80.0
Public Member Functions | Protected Attributes | List of all members
Glib::Error Class Reference

#include <glibmm/error.h>

Inheritance diagram for Glib::Error:
Inheritance graph
[legend]

Public Member Functions

 Error ()
 
 Error (GQuark error_domain, int error_code, const Glib::ustring & message)
 
 Error (GError *gobject, bool take_copy=false)
 
 Error (const Error &other)
 
Erroroperator= (const Error &other)
 
 ~Error () noexcept override
 
 operator bool () const
 Test whether the Error has an underlying instance.
 
GQuark domain () const
 
int code () const
 
const charwhat () const noexcept override
 
bool matches (GQuark error_domain, int error_code) const
 
GErrorgobj ()
 
const GErrorgobj () const
 

Protected Attributes

GErrorgobject_
 

Constructor & Destructor Documentation

◆ Error() [1/4]

Glib::Error::Error ( )

◆ Error() [2/4]

Glib::Error::Error ( GQuark  error_domain,
int  error_code,
const Glib::ustring message 
)

◆ Error() [3/4]

Glib::Error::Error ( GError gobject,
bool  take_copy = false 
)
explicit

◆ Error() [4/4]

Glib::Error::Error ( const Error other)

◆ ~Error()

Glib::Error::~Error ( )
overridenoexcept

Member Function Documentation

◆ code()

int Glib::Error::code ( ) const

◆ domain()

GQuark Glib::Error::domain ( ) const

◆ gobj() [1/2]

GError * Glib::Error::gobj ( )

◆ gobj() [2/2]

const GError * Glib::Error::gobj ( ) const

◆ matches()

bool Glib::Error::matches ( GQuark  error_domain,
int  error_code 
) const

◆ operator bool()

Glib::Error::operator bool ( ) const
explicit

Test whether the Error has an underlying instance.

Since glibmm 2.60:

◆ operator=()

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

◆ what()

const char * Glib::Error::what ( ) const
overridevirtualnoexcept

Reimplemented from std::exception.

Member Data Documentation

◆ gobject_

GError* Glib::Error::gobject_
protected