ErrorInfo Data Type

Provides a structure for grouping information about an error.

Note

This data type is supported only in Business Central on-premises.

The following methods are available on instances of the ErrorInfo data type.

Method name Description
ErrorType([ErrorType]) Specifies type of the error. 'Client' shows the specified message in the client and sends it to telemetry. 'Internal' shows a generic message in the client and sends the specified message to telemetry.
Verbosity([Verbosity]) Specifies the severity level of the error. This can determine whether the error should be sent to telemetry (which is based on the trace level setting of the server).
DataClassification([DataClassification]) Specifies the severity level of the error. Values include 'Critical', 'Error', 'Warning', 'Normal', and 'Verbose'
Message([String]) Specifies the message that will be sent to telemetry. For a 'Client' error type, the message will also be appear in the client.

See Also

Getting Started with AL
Developing Extensions