New (InvalidRegex constructor)

From m204wiki
Jump to navigation Jump to search

Create a new InvalidRegex object (InvalidRegex class) This constructor generates an instance of an InvalidRegex exception.

As shown below, the required arguments of the New method is the Code, Description, and Position properties. Each argument to New sets the value of the corresponding property of the newly constructed InvalidRegex object.

Syntax

%invalidRegex = [%(InvalidRegex):]New( Position= number, Code= number, - Description= string)

Syntax terms

%invalidRegex A reference to an instance of an InvalidRegex object.
%(InvalidRegex)The class name in parentheses denotes a shared method.
Code This name required parameter specifies the numeric value (number) to be assigned to the exception object's Code property.
Description This name required parameter specifies the string value (string) to be assigned to the object's Description property.
Position This name required parameter specifies the numeric value (number) to be assigned to the object's Position property.

See also