Codeunit 31 Last Error Context Element

Base Application, System.Utilities

Source AL, 26 lines

src/Layers/W1/BaseApp/Modules/System/ErrorMessage/LastErrorContextElement.Codeunit.allines 3 to 18 of 26, Copyright (c) Microsoft Corporation. MIT

codeunit 31 "Last Error Context Element"{    SingleInstance = true;    var        LastErrorContextElement: Codeunit "Error Context Element";    procedure Set(var ErrorContextElement: Codeunit "Error Context Element")    begin        LastErrorContextElement.Copy(ErrorContextElement);    end;    procedure Set(ID: Integer; ContextRecID: RecordID; ContextFldNo: Integer; AdditionalInfo: Text[250])    begin        LastErrorContextElement.Set(ID, ContextRecID, ContextFldNo, AdditionalInfo);    end;

All 26 lines

Public procedures 3 in 29

Set(var ErrorContextElement: Codeunit "Error Context Element")new in 19
Set(ID: Integer; ContextRecID: RecordId; ContextFldNo: Integer; AdditionalInfo: Text[250])new in 19
GetErrorMessage(var ErrorMessage: Record "Error Message")new in 19