Exception Handling with a script component.

My situation is that I'm reading from a source script component with code similar to

( in CreateNewOutputRows )

Try

With OutputBuffer

.AddRow

.Status = odbcReader.GetString(1)

end with

Catch err as exception

With ErrorBuffer

.AddRow

.ErrorInfo = err.Message

End With

End Try

In the event of an exception what I end up with is a row going to the OutputBuffer and a row going to the Errorbuffer - what I need is a single row going to ErrorBuffer and the row removed from the OutputBuffer in the event of an exception. I don't see any way of doing this in the buffer methods.

Any ideas



Answer this question

Exception Handling with a script component.

  • Exception Handling with a script component.