[rygel] core: Use INVALID_TYPE error instead of GENERAL_ERROR
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] core: Use INVALID_TYPE error instead of GENERAL_ERROR
- Date: Mon, 21 Sep 2009 11:54:28 +0000 (UTC)
commit bda3219bdc5c11e94fcb634a56c34fffd5c2dfa9
Author: Jens Georg <mail jensge org>
Date: Thu Sep 17 09:45:16 2009 +0200
core: Use INVALID_TYPE error instead of GENERAL_ERROR
src/rygel/rygel-media-db.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/rygel/rygel-media-db.vala b/src/rygel/rygel-media-db.vala
index 7ec8926..05e3f97 100644
--- a/src/rygel/rygel-media-db.vala
+++ b/src/rygel/rygel-media-db.vala
@@ -397,7 +397,7 @@ public class Rygel.MediaDB : Object {
} else if (obj is MediaContainer) {
save_container ((MediaContainer)obj);
} else {
- throw new MediaDBError.GENERAL_ERROR ("Invalid object type");
+ throw new MediaDBError.INVALID_TYPE ("Invalid object type");
}
}
@@ -553,7 +553,7 @@ public class Rygel.MediaDB : Object {
} else if (item is MediaObject) {
rc = statement.bind_int (3, MediaDBObjectType.CONTAINER);
} else {
- throw new MediaDBError.GENERAL_ERROR ("Invalid object type");
+ throw new MediaDBError.INVALID_TYPE ("Invalid object type");
}
if (rc != Sqlite.OK) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]