Alexei,

Currently the DOMException is thrown with error code only, the data 'msg' is
designed to be null and let the application filled it with its own messages.
We do not want to change this design.   So this item "DOM Messages" just
added an non-standard extension function
DOMImplementation::loadDOMExceptionMsg to let users to load the default
message for the corresponding error code.

For example:

        catch (const DOMException& toCatch)
        {
            const unsigned int maxChars = 2047;
            XMLCh errText[maxChars + 1];

            cerr << "DOMException code is:  " << toCatch.code << endl;

            if (DOMImplementation::loadDOMExceptionMsg(toCatch.code,
errText, maxChars))
                 cerr << "Message is: " << StrX(errText) << endl;
        }

Tinny
----- Original Message -----
From: "Afanasyev Alexey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 11:35 PM
Subject: DOM Messages


> Hi All!
>
> I've found "DOM Messages" in "Xerces-C++ Future Releases Plan". What does
it
> mean?
>
> Thanks,
> Alexei
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to