Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CommandException(String, PositionInScript) Constructor

Initializes a new instance of the CommandException class.

Namespace: DevExpress.EasyTest.Framework

Assembly: DevExpress.EasyTest.v24.2.dll

NuGet Package: DevExpress.EasyTest

#Declaration

public CommandException(
    string errorMessage,
    PositionInScript startPosition
)

#Parameters

Name Type Description
errorMessage String

A string that describes an error that has occured.

startPosition DevExpress.EasyTest.Framework.PositionInScript

The PositionInScript object that specifies the position of the command that is being executed.

#Remarks

Use this constructor to create an instance of the CommandException class when it is required to handle an error in EasyTest command implementation (e.g. wrong parameter count). To get the current position in the script, use the Command.StartPosition property. An example is provided in the How to: Implement a Custom EasyTest Command topic.

See Also