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

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

#include <gtkmm/filechooser.h>

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

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

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