Codeunit 29 "Error Message Handler"
Base Application · System.Utilities
Across versions
- BC23-30present
Neighbourhood 23 connected objects and pages
Base Application · System.Utilities · BC23-30 · source at ea08af5e · facts from BC29
Events published
OnBeforeActivateErrorMessageHandler(var ErrorMessageHandler: Codeunit "Error Message Handler")(integration)OnAfterRegisterErrorMessages(var ErrorMessage: Record "Error Message"; var RegisterID: Guid)(integration)
Event subscriptions
- OnGetFirstContextIDHandler subscribes to Codeunit “Error Message Management” OnGetFirstContextID
- OnGetErrorsHandler subscribes to Codeunit “Error Message Management” OnGetErrors
- OnGetLastErrorID subscribes to Codeunit “Error Message Management” OnGetLastErrorID
- OnGetLastErrorMessageRecord subscribes to Codeunit “Error Message Management” OnGetLastErrorMessageRecord
- OnGetCachedLastErrorID subscribes to Codeunit “Error Message Management” OnGetCachedLastErrorID
- OnLogErrorHandler subscribes to Codeunit “Error Message Management” OnLogError
- OnLogSimpleErrorHandler subscribes to Codeunit “Error Message Management” OnLogSimpleError
- OnFindActiveSubscriberHandler subscribes to Codeunit “Error Message Management” OnFindActiveSubscriber
- OnPushContextHandler subscribes to Codeunit “Error Message Management” OnPushContext
- OnLogLastErrorHandler subscribes to Codeunit “Error Message Management” OnLogLastError
Procedures
AppendTo(var TempErrorMessageBuf: Record "Error Message" temporary): BooleanActivate(var ErrorMessageHandler: Codeunit "Error Message Handler"): BooleanShowErrors(): BooleanNotifyAboutErrors()InformAboutErrors(ErrorHandlingOptions: Enum "Error Handling Options")RegisterErrorMessages(): GuidRegisterErrorMessages(ClearError: Boolean): GuidWriteMessagesToFile(FileName: Text; ThrowLastError: Boolean): BooleanGetErrorCallStack(): TextHasErrors(): Boolean
Plus 4 local procedures.
Triggers
OnRun
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 1511 “Notification Lifecycle Mgt.” (2 calls:
ShowNotification → RecallNotificationsForRecord,ShowNotification → SendNotification)
Called by
- Codeunit 1000 “Job Calculate WIP” (2 calls:
JobCalcWIP → HasErrors,JobCalcWIP → ShowErrors) - Codeunit 393 “Reminder-Issue” (2 calls:
OnRun → HasErrors,OnRun → ShowErrors) - Codeunit 5286 “Data Check Mgt. SAF-T” (2 calls:
OnRun → HasErrors,OnRun → ShowErrors) - Codeunit 8800 “Custom Layout Reporting” (2 calls:
ProcessReport → HasErrors,ProcessReport → ShowErrors) - Report 5692 “Calculate Depreciation” (2 calls:
OnPostReport → HasErrors,OnPostReport → ShowErrors) - Report 5707 “Batch Post Transfer Orders” (2 calls:
RunPostBatchTransferOrder → HasErrors,RunPostBatchTransferOrder → NotifyAboutErrors) - Codeunit 1371 “Sales Batch Post Mgt.” (1 call:
RunWithUI → ShowErrors) - Codeunit 1372 “Purchase Batch Post Mgt.” (1 call:
RunWithUI → ShowErrors) - Codeunit 1380 “Batch Processing Mgt.” (1 call:
BatchProcessGenJournalLine → ShowErrors) - Codeunit 19 “Gen. Jnl.-Post Preview” (1 call:
PreviewStart → ShowErrors) - Codeunit 373 “Bank. Acc. Recon. Post Preview” (1 call:
PreviewStart → ShowErrors) - Codeunit 443 “Sales-Post Prepayment (Yes/No)” (1 call:
PostPrepmtDocument → ShowErrors) - Codeunit 445 “Purch.-Post Prepmt. (Yes/No)” (1 call:
PostPrepmtDocument → ShowErrors) - Codeunit 449 “Job Queue Start Codeunit” (1 call:
OnRun → RegisterErrorMessages) - Codeunit 450 “Job Queue Error Handler” (1 call:
LogError → RegisterErrorMessages) - Codeunit 5261 “Audit File Export Mgt.” (1 call:
PreExportCheck → ShowErrors) - Codeunit 6620 “Copy Document Mgt.” (1 call:
CopySalesDoc → NotifyAboutErrors) - Codeunit 7092 “Expense Report Batch Post Mgt.” (1 call:
RunWithUI → ShowErrors) - Codeunit 8811 “Customer Statement via Queue” (1 call:
OnRun → AppendTo) - Table 36 “Sales Header” (1 call:
SendToPosting → ShowErrors) - Table 38 “Purchase Header” (1 call:
SendToPosting → ShowErrors) - Table 5900 “Service Header” (1 call:
SendToPostWithLines → ShowErrors)
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Error Message Handler"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.