gtkmm 4.21.1
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_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 charwhat () const noexcept override
 
bool matches (GQuark error_domain, int error_code) const
 
GErrorgobj ()
 
const GErrorgobj () const
 

Additional Inherited Members

- Protected Attributes inherited from Glib::Error
GErrorgobject_
 

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_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 XML 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