W3C home > Mailing lists > Public > xml-dist-app@w3.org > November 2001

Re: Proposal for hierarchical fault codes

From: Marc Hadley <marc.hadley@sun.com>
Date: Wed, 07 Nov 2001 15:44:07 +0000
Message-ID: <3BE956C7.2030902@sun.com>
To: Dan Gunter <dkgunter@lbl.gov>
CC: xml-dist-app@w3.org
Dan Gunter wrote:
> I have a simple question: do these hierarchical fault codes have any 
> well-defined semantics?
>
Only that child codes specialise their parents. e.g.

<soap:Fault xmlns:soap='http://www.w3.org/2001/09/soap-envelope' >
   <faultcode value='soap:Reciever' >
     <faultcode xmlns:app='http://example.org/apps' value='app:SomeError' />
   </faultcode>
</soap:Fault>

would mean that "app:someError" is a subcategory of "soap:Receiver".

> Could I express a stack trace with them? Could I 
> also just present the same error in 5 languages? Could I express failure 
> with possibility for retry vs. failure with no retry?
>
The "detail" fault element would be a more appropriate place for this 
kind of information I think.

I agree that the the "top" element in the faultcode tree should be 
something standardised in the specification.

Regards,
Marc

-- 
Marc Hadley <marc.hadley@sun.com>
XML Technology Centre, Sun Microsystems.
Received on Wednesday, 7 November 2001 10:46:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:04 GMT