Codeunit 28 Error Message Management

Base Application, System.Utilities

46 procedures

ProcedureVersions
Activate(var ErrorMessageHandler: Codeunit "Error Message Handler"): Boolean17-29
IsActive(): Boolean17-29
Finish(ContextVariant: Variant)17-29
IsTransactionStopped(): Boolean17-29
ShowErrors(Notification: Notification)17-29
ThrowError(ContextErrorMessage: Text; DetailedErrorMessage: Text)17-29
GetFieldNo(TableNo: Integer; FieldName: Text): Integer17-29
FindFirstErrorMessage(var ErrorMessage: Text[250]): Boolean17-29
GetErrors(var TempErrorMessage: Record "Error Message" temporary): Boolean17-29
GetErrorsInContext(ContextVariant: Variant; var TempErrorMessage: Record "Error Message" temporary): Boolean17-29
GetLastError(var ErrorMessage: Text[250]): Integer17-29
GetLastErrorID(): Integer17-29
LogError(SourceVariant: Variant; ErrorMessage: Text; HelpArticleCode: Code[30])17-29
LogContextFieldError(ContextFieldNo: Integer; ErrorMessage: Text; SourceVariant: Variant; SourceFieldNo: Integer; HelpArticleCode: Code[30])17-29
LogMessage(NewMessageType: Option; ContextFieldNo: Integer; InformationMessage: Text; SourceVariant: Variant; SourceFieldNo: Integer; HelpArticleCode: Code[30]): Boolean17-29
LogErrorMessage(ContextFieldNo: Integer; ErrorMessage: Text; SourceVariant: Variant; SourceFieldNo: Integer; HelpArticleCode: Code[30]): Boolean17-29
LogSimpleErrorMessage(ErrorMessage: Text): Boolean17-29
LogTestField(SourceVariant: Variant; SourceFieldNo: Integer): Boolean17-29
LogTestField(SourceVariant: Variant; SourceFieldNo: Integer; ExpectedValue: Variant): Boolean17-29
LogFieldError(SourceVariant: Variant; SourceFieldNo: Integer; ErrorMessage: Text): Boolean17-29
LogLastError()17-29
GetErrorsFromResultValues(Values: List of [Text]; var TempErrorMessage: Record "Error Message" temporary)17-29
ParseErrorText(JSON: Text; var TempErrorMessage: Record "Error Message" temporary)17-29
ErrorMessage2JSON(ErrorMessage: Record "Error Message"): Textgone after 19
LogWarning(ContextFieldNo: Integer; WarningMessage: Text; SourceVariant: Variant; SourceFieldNo: Integer; HelpArticleCode: Code[30]): Boolean17-29
LogWarning(WarningMessage: Text): Boolean17-29
LogInformation(ContextFieldNo: Integer; InformationMessage: Text; SourceVariant: Variant; SourceFieldNo: Integer; HelpArticleCode: Code[30]): Boolean17-29
LogInformation(InformationMessage: Text): Boolean17-29
PushContext(var ErrorContextElement: Codeunit "Error Context Element"; ContextVariant: Variant; ContextFieldNo: Integer; AdditionalInfo: Text[250]): Integer17-29
GetTopContext(var ErrorMessage: Record "Error Message"): Boolean17-29
ShowErrors(RegisterID: Guid)new in 18
GetCachedLastErrorID(): Integernew in 18
Activate(var ErrorMessageHandler: Codeunit "Error Message Handler"; ClearError: Boolean): Booleannew in 19changed in 27
FinishTopContext()new in 19
GetCurrCallStack(): Textnew in 19
FldRefHasValue(FldRef: FieldRef): Booleannew in 19
PopContext(var ErrorContextElement: Codeunit "Error Context Element"): Integernew in 19
GetLastContext(var ErrorMessage: Record "Error Message"): Booleannew in 19
CollectErrors(var TempLineErrorMessage: Record "Error Message" temporary)new in 20
ErrorMessage2JSON(var ErrorMessage: Record "Error Message"): Textnew in 20
PackErrorMessagesToResults(var TempErrorMessage: Record "Error Message" temporary; var Results: Dictionary of [Text, Text])new in 20
AddSubContextToLastErrorMessage(Tag: Text; VariantRec: Variant)new in 22
InsertTempLineErrorMessage(var TempLineErrorMessage: Record "Error Message" temporary; RecordId: RecordId; TableNo: Integer; FieldNo: Integer; Description: Text; CallStack: Text)new in 24
BuildActionableErrorInfo(ErrorTitle: Text; ErrorMessage: Text; RecId: RecordId; ActionMessage: Text; ActionCodeunuitId: Integer; ActionName: Text): ErrorInfonew in 24
BuildActionableErrorInfo(ErrorTitle: Text; ErrorMessage: Text; RecId: RecordId; ActionMessage: Text; ActionCodeunuitId: Integer; ActionName: Text; ActionDescription: Text): ErrorInfonew in 24
BuildActionableErrorInfo(ErrorTitle: Text; ErrorMessage: Text; SysId: Guid; ActionMessage: Text; ActionCodeunuitId: Integer; ActionName: Text; ActionDescription: Text): ErrorInfonew in 25