wwXML::CreateErrorXML

This method creates an error XML fragment. The fragment is not a complete document as it lacks the XML header, but rather is meant as a fragment that can be embedded into a full XML document.

XML Format:

<error>
   <errormessage>Couldn't open file</errormessage>
   <errornumber>-1</errornumber>
</error>
o.CreateErrorXML(lcErrorMsg, lnError, lnIndent)

Return Value

XML string of the error. Note this is not a complete XML document, but only the <error></error> fragment.

Parameters

lcErrorMsg
The error message to return in the ErrorMessage element.

lnError
Optional - An error number describing the error.

lnIndent
The indent at which the XML fragment is created. Default is 1.


See also:

Class wwXML (Low Level Methods)

© West Wind Technologies, 1996-2024 • Updated: 09/01/99
Comment or report problem with topic