gtkmm: Gtk::CssParserError Class Reference

#include <gtkmm/cssprovider.h>

Inheritance diagram for Gtk::CssParserError:

Public Types

enum  Code {

  FAILED,

  SYNTAX,

  IMPORT,

  NAME,

  UNKNOWN_VALUE

}
 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:
Enumerator
FAILED 

Unknown failure.

SYNTAX 

The given text does not form valid syntax.

IMPORT 

Failed to import a resource.

NAME 

The given name has not been defined.

UNKNOWN_VALUE 

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)
explicit

Member Function Documentation

Code Gtk::CssParserError::code ( ) const