abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Primmer" <david.prim...@gmail.com>
Subject Re: Improve Abdera user feedback on error conditions
Date Sat, 12 Jul 2008 21:25:01 GMT
I haven't looked too far for prior art in this area but the youtube
api does have an approach to formatting error response bodies:

http://code.google.com/apis/youtube/developers_guide_protocol.html#Error_responses

An invalid_format Error - This code indicates that an XML element's
value does not match an expected format. For example, you could
receive this error if you specify invalid coordinates in the <gml:pos>
tag.

<?xml version='1.0' encoding='UTF-8'?>
<errors>
  <error>
    <domain>yt:validation</domain>
    <code>invalid_format</code>
    <location type='xpath'>georss:where/gml:point/gml:pos/text()</location>
  </error>
</errors>

There is one issue, I think with the domain element, as in this
example, it's specific to google data services and not global, but you
get the basic idea.

davep

On Sat, Jul 12, 2008 at 11:06 AM, Sergio Bossa <sergio.bossa@gmail.com> wrote:
> Just to be clear: when I say "user feedback", I mean both feedback
> provided to users acting as clients of an Abdera server, and also
> feedback provided to users implementing an Abdera server.
>
> Cheers,
>
> Sergio B.
>
> --
> Sergio Bossa
> Software Passionate, Java Technologies Specialist and Open Source Enthusiast.
> Blog : http://sbtourist.blogspot.com
> Sourcesense - making sense of Open Source : http://www.sourcesense.com
> Pro-netics s.p.a. : http://www.pronetics.it
>

Mime
View raw message