[telepathy-spec/master] errors: distinguish between Busy (user), ServiceBusy (server) and ResourceUnavailable (our client)
Simon McVittie
simon.mcvittie at collabora.co.uk
Tue Aug 4 10:24:04 PDT 2009
---
spec/errors.xml | 31 ++++++++++++++++++++++++++++++-
1 files changed, 30 insertions(+), 1 deletions(-)
diff --git a/spec/errors.xml b/spec/errors.xml
index e8f2031..2770e1c 100644
--- a/spec/errors.xml
+++ b/spec/errors.xml
@@ -264,7 +264,9 @@
<tp:error name="Busy">
<tp:docstring>
Used to represent a user being removed from a channel because of a
- "busy" indication.
+ "busy" indication. This error SHOULD NOT be used to represent a server
+ or other infrastructure being too busy to process a request - for that,
+ see ServerBusy.
<tp:rationale>
This corresponds to Busy in the
@@ -367,6 +369,33 @@
</tp:docstring>
</tp:error>
+ <tp:error name="Service Busy">
+ <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
+ Raised if a server or some other piece of infrastructure cannot process
+ the request, e.g. due to resource limitations. Clients MAY try again
+ later.
+
+ <tp:rationale>
+ This is not the same error as Busy, which indicates that a
+ <em>user</em> is busy.
+ </tp:rationale>
+ </tp:docstring>
+ </tp:error>
+
+ <tp:error name="Resource Unavailable">
+ <tp:docstring>
+ Raised if a request cannot be satisfied because a process local to the
+ user has insufficient resources.
+
+ <tp:rationale>
+ For instance, the <tp:dbus-ref
+ namespace="org.freedesktop.Telepathy">ChannelDispatcher</tp:dbus-ref>
+ might raise this error for some or all channel requests if it has
+ detected that there is not enough free memory.
+ </tp:rationale>
+ </tp:docstring>
+ </tp:error>
+
<tp:copyright>Copyright © 2005-2009 Collabora Limited</tp:copyright>
<tp:copyright>Copyright © 2005-2009 Nokia Corporation</tp:copyright>
<tp:license xmlns="http://www.w3.org/1999/xhtml">
--
1.5.6.5
More information about the telepathy-commits
mailing list