logo top
Main Page   Widgets   glibmm Namespaces   Book  

Glib::ConvertError Class Reference
[Character Set Conversion]

Exception class for charset conversion errors. More...

Inheritance diagram for Glib::ConvertError:

Inheritance graph
[legend]
List of all members.

Public Types

enum  Code {
  NO_CONVERSION,
  ILLEGAL_SEQUENCE,
  FAILED,
  PARTIAL_INPUT,
  BAD_URI,
  NOT_ABSOLUTE_PATH
}

Public Member Functions

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

Detailed Description

Exception class for charset conversion errors.

Glib::convert() and friends throw a ConvertError exception if the charset conversion failed for some reason. When writing non-trivial applications you should always catch those errors, and then try to recover, or tell the user the input was invalid.


Member Enumeration Documentation

Enumerator:
NO_CONVERSION 
ILLEGAL_SEQUENCE 
FAILED 
PARTIAL_INPUT 
BAD_URI 
NOT_ABSOLUTE_PATH 


Constructor & Destructor Documentation

Glib::ConvertError::ConvertError ( Code  error_code,
const Glib::ustring error_message 
)

Glib::ConvertError::ConvertError ( GError *  gobject  )  [explicit]


Member Function Documentation

Code Glib::ConvertError::code (  )  const

Reimplemented from Glib::Error.


The documentation for this class was generated from the following file:

Generated for glibmm 2.4 by Doxygen 1.5.1 © 1997-2001