Roger wrote:
> Hi,
>    I followed Alberto's advisory, and add the following  lines by the end of 
> file util/MsgLoaders/MsgFile/CrtXMLMsgs before ENDPGM, but the throw 
> exception 
> is still mis-mapped, My exception-throw code is :
> ThrowXMLwithMemMgr(IOException,XMLExcepts::Reader_ZeroMemory, fMemoryManager);
> the captured exception is :
> Fatal Error at file prodInfo, line 16, char 11
>   Message: An exception occurred! Type:IOException, Message:The index or size 
> is negative, or greater than the allowed value
> But that definitely is not the one I defined MSG('The passed memory has been 
> eaten up!').
> I am confused about the category definitions in Xerces,could anybody tell me 
> how 
> to make a self-defined Exceptions, I just want to throw an exception to tell 
> my 
> program to handle something,I don't care about its type.
> 

You can throw any class or built-in type you like as an exception.  My 
suggestion is you create a simple class of your
own and throw it.  If you need more information from the throw point, then you 
can add data members to your class that
you can initialize when you throw the exception.

Dave

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

Reply via email to