<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 25, 2015 at 10:47 AM, Doug Hellmann <span dir="ltr"><<a href="mailto:doug@doughellmann.com" target="_blank">doug@doughellmann.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
<br>
On Wed, Feb 25, 2015, at 09:33 AM, Eugeniya Kudryashova wrote:<br>
> Hi, stackers!<br>
><br>
> As was suggested in topic [1], using an HTTP header was a good solution<br>
> for<br>
> communicating common/standardized OpenStack API error codes.<br>
><br>
> So I’d like to begin working on a common library, which will collect all<br>
> openstack HTTP API errors, and assign them string error codes. My<br>
> suggested<br>
> name for library is openstack.error, but please feel free to propose<br>
> something different.<br>
><br>
> The other question is where we should allocate such project, in openstack<br>
> or stackforge, or maybe oslo-incubator? I think such project will be too<br>
> massive (due to dealing with lots and lots of exceptions) to allocate it<br>
> as a part of oslo, so I propose developing the project on Stackforge and<br>
> then eventually have it moved into the openstack/ code namespace when the<br>
> other projects begin using the library.<br>
><br>
> Let me know your feedback, please!<br>
<br>
</div></div>I'm not sure a single library as a home to all of the various error<br>
messages is the right approach. I thought, based on re-reading the<br>
thread you link to, that the idea was to come up with a standard schema<br>
for error payloads and then let the projects fill in the details. We<br>
might need a library for utility functions, but that wouldn't actually<br>
include the error messages.<br></blockquote><div><br></div><div>+1 focus on giving projects the tooling necessary to provide consistent error feedback.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Did I misunderstand?<br>
<br>
Doug<br>
<br>
><br>
><br>
> [1] -<br>
> <a href="http://lists.openstack.org/pipermail/openstack-dev/2015-January/055549.html" target="_blank">http://lists.openstack.org/pipermail/openstack-dev/2015-January/055549.html</a><br>
> __________________________________________________________________________<br>
> OpenStack Development Mailing List (not for usage questions)<br>
> Unsubscribe:<br>
> <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br></div></div>