geocode-error

geocode-error — Error helper functions

Synopsis

#include <geocode-glib/geocode-glib.h>

#define             GEOCODE_ERROR
enum                GeocodeError;
GQuark              geocode_error_quark                 (void);

Object Hierarchy

  GEnum
   +----GeocodeError

Description

Contains helper functions for reporting errors to the user.

Details

GEOCODE_ERROR

#define GEOCODE_ERROR (geocode_error_quark ())

Error domain for geocode-glib. Errors from this domain will be from the GeocodeError enumeration. See GError for more information on error domains.


enum GeocodeError

typedef enum {
	GEOCODE_ERROR_PARSE,
	GEOCODE_ERROR_NOT_SUPPORTED,
	GEOCODE_ERROR_NO_MATCHES,
	GEOCODE_ERROR_INVALID_ARGUMENTS,
	GEOCODE_ERROR_INTERNAL_SERVER
} GeocodeError;

Error codes returned by geocode-glib functions.

GEOCODE_ERROR_PARSE

An error occured parsing the response from the web service.

GEOCODE_ERROR_NOT_SUPPORTED

The request made was not supported.

GEOCODE_ERROR_NO_MATCHES

The requests made didn't have any matches.

GEOCODE_ERROR_INVALID_ARGUMENTS

The request made contained invalid arguments.

GEOCODE_ERROR_INTERNAL_SERVER

The server encountered an (possibly unrecoverable) internal error.

geocode_error_quark ()

GQuark              geocode_error_quark                 (void);

Gets the geocode-glib error quark.

Returns :

a GQuark.