From 9b0a610bda7d6b99fa2f61bb77493c671eb1fb41 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 11 Dec 2009 21:51:30 +0000 Subject: Error code changes. * Remove AlreadyExists. No longer needed. * Remove NotSupported in favor of the one defined in DBus itself: org.freedesktop.DBus.Error.NotSupported * There's no real NoSuchObject error code defined in DBus itself, so defined our own. --- secret-service/org.freedesktop.Secrets.xml | 21 +++++---------------- secret-service/specification.xml | 3 +-- 2 files changed, 6 insertions(+), 18 deletions(-) diff --git a/secret-service/org.freedesktop.Secrets.xml b/secret-service/org.freedesktop.Secrets.xml index 5757abd..a681d79 100644 --- a/secret-service/org.freedesktop.Secrets.xml +++ b/secret-service/org.freedesktop.Secrets.xml @@ -24,25 +24,14 @@ Errors returned by the Secret Service API. - - - An object (session, collection) already exists with the same name. - - - - The object must be unlocked before this action can be carried out. - - - - - The algorithm is not supported. - + The object must be unlocked before this action can be carried out. - - A session must be established before this action can be carried out. - + The session does not exist. + + + No such item or collection exists. diff --git a/secret-service/specification.xml b/secret-service/specification.xml index e69d116..f305cbe 100644 --- a/secret-service/specification.xml +++ b/secret-service/specification.xml @@ -263,8 +263,7 @@ specific. If a service does not support a specific set of algorithms, a - - NotSupported + org.freedesktop.DBus.Error.NotSupported error is returned, and the client is free to try another set of algorithms. The plain algorithm is almost always supported. -- cgit v1.2.3-70-g09d2