zeitgeist team mailing list archive
-
zeitgeist team
-
Mailing list archive
-
Message #03859
[Branch ~zeitgeist/zeitgeist/bluebird] Rev 205: added new INVALID_KEY error
------------------------------------------------------------
revno: 205
committer: Seif Lotfy <seif@xxxxxxxxx>
branch nick: bluebird
timestamp: Wed 2011-08-31 11:31:29 +0200
message:
added new INVALID_KEY error
modified:
extensions/ds-registry.vala
src/errors.vala
--
lp:~zeitgeist/zeitgeist/bluebird
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird
Your team Zeitgeist Framework Team is subscribed to branch lp:~zeitgeist/zeitgeist/bluebird.
To unsubscribe from this branch go to https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird/+edit-subscription
=== modified file 'extensions/ds-registry.vala'
--- extensions/ds-registry.vala 2011-08-31 00:30:01 +0000
+++ extensions/ds-registry.vala 2011-08-31 09:31:29 +0000
@@ -211,7 +211,7 @@
{
return ds.to_variant();
}
- return null;
+ throw new EngineError.INVALID_KEY("Datasource with Unique ID: %s not found");
}
}
=== modified file 'src/errors.vala'
--- src/errors.vala 2011-08-29 20:57:10 +0000
+++ src/errors.vala 2011-08-31 09:31:29 +0000
@@ -30,7 +30,8 @@
public errordomain EngineError
{
DATABASE_ERROR,
- INVALID_ARGUMENT
+ INVALID_ARGUMENT,
+ INVALID_KEY,
}
// vala doesn't include proper headers, this fixes it