[folks] core: Add Folks.PropertyError



commit be2f014028b93c286886f3367b84ebf4a562ace8
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sat Aug 27 16:25:37 2011 +0100

    core: Add Folks.PropertyError
    
    Helps: bgo#657510

 NEWS               |    1 +
 folks/persona.vala |   31 +++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index 7a401c0..c7f8104 100644
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,7 @@ API changes:
 * Add PersonaStore:always-writeable-properties property
 * Add IndividualAggregatorError.PROPERTY_NOT_WRITEABLE error
 * Add IndividualAggregator.ensure_individual_property_writeable()
+* Add Folks.PropertyError
 
 Overview of changes from libfolks 0.6.0 to libfolks 0.6.1
 =========================================================
diff --git a/folks/persona.vala b/folks/persona.vala
index 8c3fcba..47a4315 100644
--- a/folks/persona.vala
+++ b/folks/persona.vala
@@ -21,6 +21,37 @@
 using GLib;
 
 /**
+ * Errors which can be thrown when asynchronously setting a property of a
+ * { link Persona} using a setter method defined on an interface such as
+ * { link AliasDetails}.
+ *
+ * @since UNRELEASED
+ */
+public errordomain Folks.PropertyError
+{
+  /**
+   * Property is not writeable for this particular object.
+   *
+   * @since UNRELEASED
+   */
+  NOT_WRITEABLE,
+
+  /**
+   * Value was invalid for the property.
+   *
+   * @since UNRELEASED
+   */
+  INVALID_VALUE,
+
+  /**
+   * Unknown error when setting the property.
+   *
+   * @since UNRELEASED
+   */
+  UNKNOWN_ERROR
+}
+
+/**
  * Represents a "shard" of a person from a single source (a single
  * { link Backend}), such as an XMPP contact from Telepathy or a vCard contact
  * from evolution-data-server.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]