gtkmm 3.24.7
Public Types | Public Member Functions | List of all members
Gtk::FileChooserError Class Reference

Exception class for Gdk::FileChooser errors. More...

#include <gtkmm/filechooser.h>

Inherits Glib::Error.

Public Types

enum  Code {
  NONEXISTENT ,
  BAD_FILENAME ,
  ALREADY_EXISTS ,
  INCOMPLETE_HOSTNAME
}
 These identify the various errors that can occur while calling Gtk::FileChooser functions. More...
 

Public Member Functions

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

Detailed Description

Exception class for Gdk::FileChooser errors.

Member Enumeration Documentation

◆ Code

These identify the various errors that can occur while calling Gtk::FileChooser functions.

Enumerator
NONEXISTENT 

Indicates that a file does not exist.

BAD_FILENAME 

Indicates a malformed filename.

ALREADY_EXISTS 

Indicates a duplicate path (e.g.

when adding a bookmark).

INCOMPLETE_HOSTNAME 

Indicates an incomplete hostname (e.g.

"http://foo" without a slash after that).

Constructor & Destructor Documentation

◆ FileChooserError() [1/2]

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

◆ FileChooserError() [2/2]

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

Member Function Documentation

◆ code()

Code Gtk::FileChooserError::code ( ) const