How to add message to "Errors and Warnings" window

Discussions related to custom development with Select.
Post Reply
kqian
Posts: 68
Joined: Wed Feb 23, 2011 4:01 pm

How to add message to "Errors and Warnings" window

Post by kqian »

Hi,

For handling errors in my package, I want to display specific error message in SoftPro's "Errors and Warnings" window. How can I do that?
I tried to just throw an exception from my code, but it caused SoftPro client to pop up a error dialog rather than showing the message in Error and Warning window.

Thanks.

Kevin
Hadi Chemaly

Re: How to add message to "Errors and Warnings" window

Post by Hadi Chemaly »

Hi Kevin,

You need to get ahold of the IErrorList service, and add to it the messages you want to report using IErrorList.Add(). You will need to use the ErrorKind enumeration to specify the type of message to display (Warning, Error or Info).

Let us know if you need further assistance.
Post Reply