ErrorInfo.Create(Text [, Boolean] [, var Record] [, Integer] [, Integer] [, Text] [, Verbosity] [, DataClassification] [, Dictionary of [Text, Text]]) Method

Version: Available or changed with runtime version 8.0.

Creates a new ErrorInfo object.

Syntax

Error :=   ErrorInfo.Create(Message: Text [, Collectible: Boolean] [, var Record: Record] [, FieldNo: Integer] [, PageNo: Integer] [, ControlName: Text] [, Verbosity: Verbosity] [, DataClassification: DataClassification] [, CustomDimensions: Dictionary of [Text, Text]])

Parameters

Message
 Type: Text
The error message.

[Optional] Collectible
 Type: Boolean
Specifies whether the error can be collected using ErrorBehavior.Collect. This parameter is optional.

[Optional] Record
 Type: Record
A record that the error relates to. This parameter is optional.

[Optional] FieldNo
 Type: Integer
A field number that the error relates to. This parameter is optional.

[Optional] PageNo
 Type: Integer
A page that the error relates to. This parameter is optional.

[Optional] ControlName
 Type: Text
A control name that the error relates to. This parameter is optional.

[Optional] Verbosity
 Type: Verbosity
The verbosity of the error. This parameter is optional.

[Optional] DataClassification
 Type: DataClassification
Classification of data in the message. This parameter is optional.

[Optional] CustomDimensions
 Type: Dictionary of [Text, Text]
Set of additional dimensions, specified as a dictionary. This parameter is optional.

Return Value

Error
 Type: ErrorInfo
The created ErrorInfo.

See Also

ErrorInfo Data Type
Get Started with AL
Developing Extensions