OnStepError

Syntax:

OnStepError(FunctionName, StepNumber, ErrorText, ErrorCode)

Description:

This event occurs each time a task step generates an error. Depending on how the step is configured, the task may either continue after the error occurs or may be aborted. In the latter case, theOnTaskEndevent is fired immediately afterwards.

NOTE: Line numbers are 0 based within the Task Interpreter (i.e. step 1 inside the Task Builder is step 0 when using this object).

Parameters:

Parameter

Description

FunctionName

The name of the executed function.

StepNumber

The step number which caused the error. Since line numbers are 0 based, if step 2 (as it appears in the Task Builder's Steps panel) caused the error, this object  will return step 1.

ErrorText

A textual description of the error that occurred.

ErrorCode

The error code related the error that occurred.

Example:


Sub Main
MsgBox OnStepError()
End Sub


See Also:

Main | OnStepEnd | OnStepError | OnStepStart | OnTaskEnd | OnTaskFailure | OnTaskStart |