Re: Proposal for hierarchical fault codes

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 UTC