[gxml/gsoc2013: 59/69] Serialization.vala: DomError no longer thrown, so no need to catch it



commit a0ee0fbd17e3216124d6ee2825f8ef1ed130a994
Author: Richard Schwarting <aquarichy gmail com>
Date:   Sat Jul 27 00:01:54 2013 -0400

    Serialization.vala: DomError no longer thrown, so no need to catch it

 gxml/Serialization.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gxml/Serialization.vala b/gxml/Serialization.vala
index 639469b..1545a66 100644
--- a/gxml/Serialization.vala
+++ b/gxml/Serialization.vala
@@ -87,7 +87,7 @@ namespace GXml {
                 * { link GLib.Value} can transform into a string, and
                 * operates recursively.
                 */
-               private static GXml.DomNode serialize_property (GLib.Object object, ParamSpec prop_spec, 
GXml.Document doc) throws SerializationError, DomError {
+               private static GXml.DomNode serialize_property (GLib.Object object, ParamSpec prop_spec, 
GXml.Document doc) throws SerializationError {
                        Type type;
                        Value value;
                        DomNode value_node;
@@ -276,7 +276,7 @@ namespace GXml {
                                        prop.append_child (value_prop);
                                        root.append_child (prop);
                                }
-                       } catch (GXml.DomError e) {
+                       } catch (GLib.Error e) {
                                GLib.error ("%s", e.message);
                                // TODO: handle this better
                        }


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