gtkmm  4.8.0
Public Types | Public Member Functions | List of all members
Gtk::RecentManagerError Class Reference

Exception class for Gtk::RecentManager errors. More...

#include <gtkmm/recentmanager.h>

Inherits Glib::Error.

Public Types

enum  Code {
  NOT_FOUND ,
  INVALID_URI ,
  INVALID_ENCODING ,
  NOT_REGISTERED ,
  READ ,
  WRITE ,
  UNKNOWN
}
 Error codes for Gtk::RecentManager operations More...
 

Public Member Functions

 RecentManagerError (Code error_code, const Glib::ustring & error_message)
 
 RecentManagerError (GError * gobject)
 
Code code () const
 

Detailed Description

Exception class for Gtk::RecentManager errors.

Member Enumeration Documentation

◆ Code

Error codes for Gtk::RecentManager operations

Enumerator
NOT_FOUND 

The URI specified does not exists in the recently used resources list.

INVALID_URI 

The URI specified is not valid.

INVALID_ENCODING 

The supplied string is not UTF-8 encoded.

NOT_REGISTERED 

No application has registered the specified item.

READ 

Failure while reading the recently used resources file.

WRITE 

Failure while writing the recently used resources file.

UNKNOWN 

Unspecified error.

Constructor & Destructor Documentation

◆ RecentManagerError() [1/2]

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

◆ RecentManagerError() [2/2]

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

Member Function Documentation

◆ code()

Code Gtk::RecentManagerError::code ( ) const