08-27-04 11:06 PM
Would it serve your purpose, if the error is logged to the proprietary
database, but also gets logged in the Application log?
Regards
Dev
"The Gremlin" <imagremlin@hotmail.com> wrote in message
news:F072BC06-5EFA-476D-BA13-F153B1C21180@microsoft.com...
> I need to catch parsing errors on incoming flat files. Errors must be
logged
> to a proprietary database. I tried creating a simple derived flat file
> dissasembler derived class, overriding the Disassemble method, like this:
>
> public new void Disassemble(IPipelineContext pContext, IBaseMessage
pInMsg)
> {
> try
> {
> base.Disassemble(pContext, pInMsg);
> }
> catch(Exception ex)
> {
> // Log the error here
> }
> }
>
> No luck. The disassemble method insists in writing the error to the event
> log and does not raise an exception. How can I achieve this?
[ Post a follow-up to this message ]
|