manpagez: man pages & more
html files: eggdbus
Home | html | info | man

TestError

TestError — Errors

Synopsis

#define             TEST_ERROR
GQuark              test_error_quark                    (void);
GType               test_error_get_type                 (void);
#define             TEST_TYPE_ERROR
enum                TestError;

Description

An example of an error enumeration.

Details

TEST_ERROR

#define TEST_ERROR test_error_quark()

Error domain for com.example.Error.* D-Bus errors. Errors in this domain will be from the TestError enumeration. See GError for information on error domains


test_error_quark ()

GQuark              test_error_quark                    (void);

test_error_get_type ()

GType               test_error_get_type                 (void);

TEST_TYPE_ERROR

#define TEST_TYPE_ERROR (test_error_get_type ())

enum TestError

typedef enum
{
  TEST_ERROR_FAILED = 0,   /*< nick=com.example.Error.Failed >*/
  TEST_ERROR_FLUX_CAPACITOR_FAILURE = 1,   /*< nick=com.example.Error.FluxCapacitorFailure >*/
  TEST_ERROR_WOULD_DESTRUCT = 100,   /*< nick=com.example.Error.WouldDestruct >*/
  TEST_ERROR_WOULD_BLOCK = 101,   /*< nick=com.example.Error.WouldBlock >*/
} TestError;

An example of an error enumeration.

TEST_ERROR_FAILED

Something went wrong

TEST_ERROR_FLUX_CAPACITOR_FAILURE

The Flux Capacitor failed

TEST_ERROR_WOULD_DESTRUCT

Operation would destruct the TwiddleFrobber

TEST_ERROR_WOULD_BLOCK

This should be value 101
© manpagez.com 2000-2017
Individual documents may contain additional copyright information.