Editar

Compartir a través de


ErrorInfo.Create(String [, Boolean] [, var Record] [, Integer] [, Integer] [, String] [, 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: String [, Collectible: Boolean] [, var Record: Record] [, FieldNo: Integer] [, PageNo: Integer] [, ControlName: String] [, Verbosity: Verbosity] [, DataClassification: DataClassification] [, CustomDimensions: Dictionary of [Text, Text]])

Parameters

Message
 Type: String
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: String
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

Collecting Errors
ErrorInfo Data Type
Get Started with AL
Developing Extensions