> > My problem is that not displaying anything in case of an error is a
> > completely unacceptable solution. I *MUST* return a valid 
> > XML message in a predefined format. If not, I am violating the 
> standard we are
> if (@foo_bar (42, 4711) == ERROR_CODE) {
>    PrintXMLErrorMessage ();

I do not believe the above will work.  When using the "@" symbol
in front of an expression, it makes it so that the error code that is
returned is "0".  While writing my error handler class, in the 
function that processes whatever error is triggered, I check to see
if the error code is "0" and if it is, I do nothing because there was
an "@" symbol prepended to the expression.
You can read more about this in the error handling section of the
documentation.

Chris

Reply via email to