gtkmm  4.22.0
Public Types | Public Member Functions | List of all members
Gtk::SvgError Class Reference

#include <gtkmm/svg.h>

Inheritance diagram for Gtk::SvgError:
Inheritance graph
[legend]

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
 

Member Enumeration Documentation

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

Gtk::SvgError::SvgError ( Code  error_code,
const Glib::ustring &  error_message 
)
Gtk::SvgError::SvgError ( GError *  gobject)
explicit

Member Function Documentation

Code Gtk::SvgError::code ( ) const