gtkmm 4.21.3
Gtk::SvgError Class Reference

#include <gtkmm/svg.h>

Inheritance diagram for Gtk::SvgError:

Public Types

enum  Code {
  INVALID_SYNTAX ,
  INVALID_ELEMENT ,
  INVALID_ATTRIBUTE ,
  MISSING_ATTRIBUTE ,
  INVALID_REFERENCE ,
  FAILED_UPDATE ,
  FAILED_RENDERING
}
 Error codes in the GTK_SVG_ERROR domain for errors that happen during parsing or rendering of SVG. More...

Public Member Functions

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

Member Enumeration Documentation

◆ Code

Error codes in the GTK_SVG_ERROR domain for errors that happen during parsing or rendering of SVG.

Since gtkmm 4.22
Enumerator
INVALID_SYNTAX 

The XML syntax is broken in some way.

INVALID_ELEMENT 

An XML element is invalid (either because it is not part of SVG, or because it is in the wrong place, or because it not implemented in GTK).

INVALID_ATTRIBUTE 

An attribute is invalid (either because it is not part of SVG, or because it is not implemented in GTK, or its value is problematic).

MISSING_ATTRIBUTE 

A required attribute is missing.

INVALID_REFERENCE 

A reference does not point to a suitable element.

FAILED_UPDATE 

An animation could not be updated.

FAILED_RENDERING 

Rendering is not according to expecations.

Constructor & Destructor Documentation

◆ SvgError() [1/2]

Gtk::SvgError::SvgError ( Code error_code,
const Glib::ustring & error_message )

◆ SvgError() [2/2]

Gtk::SvgError::SvgError ( GError * gobject)
explicit

Member Function Documentation

◆ code()

Code Gtk::SvgError::code ( ) const