gtkmm: Gtk::CssParserError Class Reference

#include <gtkmm/cssprovider.h>

Inheritance diagram for Gtk::CssParserError:

Public Types

enum  Code {






 Errors that can occur while parsing CSS. More...


Public Member Functions

 CssParserError (Code error_code, const Glib::ustring& error_message)
 CssParserError (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
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

Additional Inherited Members

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

Detailed Description

Member Enumeration Documentation

Errors that can occur while parsing CSS.

These errors are unexpected and will cause parts of the given CSS to be ignored.

Since gtkmm 3.96:

Unknown failure.


The given text does not form valid syntax.


Failed to import a resource.


The given name has not been defined.


The given value is not correct.

Constructor & Destructor Documentation

Gtk::CssParserError::CssParserError ( Code  error_code,
const Glib::ustring error_message 
Gtk::CssParserError::CssParserError ( GError *  gobject)

Member Function Documentation

Code Gtk::CssParserError::code ( ) const