glibmm 2.80.0
Public Types | Public Member Functions | List of all members
Glib::KeyFileError Class Reference

Exception class for KeyFile errors. More...

#include <glibmm/keyfile.h>

Inheritance diagram for Glib::KeyFileError:
Inheritance graph

Public Types

enum  Code {
 Error codes returned by key file parsing. More...

Public Member Functions

 KeyFileError (Code error_code, const Glib::ustring & error_message)
 KeyFileError (GError * gobject)
Code code () const
- Public Member Functions inherited from Glib::Error
 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. More...
GQuark domain () const
int code () const
const char * what () const noexcept override
bool matches (GQuark error_domain, int error_code) const
GError * gobj ()
const GError * gobj () const
virtual const char * what () const noexcept

Additional Inherited Members

- Protected Attributes inherited from Glib::Error
GError * gobject_

Detailed Description

Exception class for KeyFile errors.

Member Enumeration Documentation

◆ Code

Error codes returned by key file parsing.


The text being parsed was in an unknown encoding.


Document was ill-formed.


The file was not found.


A requested key was not found.


A requested group was not found.


A value could not be parsed.

Constructor & Destructor Documentation

◆ KeyFileError() [1/2]

Glib::KeyFileError::KeyFileError ( Code  error_code,
const Glib::ustring error_message 

◆ KeyFileError() [2/2]

Glib::KeyFileError::KeyFileError ( GError *  gobject)

Member Function Documentation

◆ code()

Code Glib::KeyFileError::code ( ) const