Codeunit 6115 E-Document Error Helper

E-Document Core, Microsoft.eServices.EDocument

Source AL, 154 lines

src/Apps/W1/EDocument/App/src/Helpers/EDocumentErrorHelper.Codeunit.allines 10 to 25 of 154, Copyright (c) Microsoft Corporation. MIT

codeunit 6115 "E-Document Error Helper"{    /// <summary>    /// Use it to get the number of errors for E-Document.    /// </summary>    /// <param name="EDocument">The E-Document record.</param>    /// <returns> Count of the errors in an an E-Document.</returns>    procedure ErrorMessageCount(var EDocument: Record "E-Document"): Integer    var        ErrorMessage: Record "Error Message";    begin        ErrorMessage.SetContext(EDocument);        exit(ErrorMessage.ErrorMessageCount(ErrorMessage."Message Type"::Error));    end;    /// <summary>

All 154 lines

Public procedures 8 in 29

ErrorMessageCount(var EDocument: Record "E-Document"): Integernew in 23
HasErrors(var EDocument: Record "E-Document"): Booleannew in 23
ClearErrorMessages(EDocument: Record "E-Document")new in 23
LogWarningMessage(EDocument: Record "E-Document"; RelatedRec: Variant; FieldNo: Integer; Message: Text)new in 23
LogErrorMessage(EDocument: Record "E-Document"; RelatedRec: Variant; FieldNo: Integer; Message: Text)new in 23
LogSimpleErrorMessage(var EDocument: Record "E-Document"; Message: Text)new in 23

All 10 procedures in 23-29

Changes 1 in 28

List17181920212223242526272829
Procedures11
ThrowIfHasErrors(EDocument: Record "E-Document")new in 28
added

All 2 changes in 23-29