DEENESPTFRRUARHIKOZHNL

结构体 ara::exec::ExecutionErrorEvent

[SWS_EM_02544] Upstream: RS_EM_00101, RS_AP_00116, RS_AP_00122, RS_AP_00124, RS_AP_00140, RS_AP_00154

struct ExecutionErrorEvent final {...};

Represents an execution error event which happens in a Function Group.

Header-Datei#include "ara/exec/execution_error_event.h"
Forwarding-Header#include "ara/exec/exec_fwd.h"
Scopenamespace ara::exec

用户指南人工智能生成

将意外终止进程的错误信息与其关联的功能组绑定在一起。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: eaa306c71170 来源 未决问题(3)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

将意外终止进程的错误信息与其关联的功能组绑定在一起。

数据结构 ara::exec::ExecutionErrorEvent 用于在功能组内的进程意外终止时封装错误事件。为此,它通过属性 executionError [SWS_EM_02545] 将受影响进程的特定错误代码与其发生事件的相应 functionGroup [SWS_EM_02546] 绑定在一起。基于此数据基础,上层错误处理可以分析上下文并针对相应功能组启动适当的重启或防护措施。作为纯数据结构,该类型不提供自己的方法,在并发访问时需要外部同步。

上下文

结构 ara::exec::ExecutionErrorEvent 在模块 exec 中用于表示在功能组内发生的执行错误。在 AUTOSAR Adaptive Platform 中,进程在逻辑上划分为功能组,以便有序控制其状态和生命周期。如果在执行某个进程时发生导致其意外终止的严重错误,则该状态将映射为结构化事件。数据结构通过将发生的错误代码与受影响的功能组关联来封装相关细节。

主要交互伙伴包括受影响的进程(其意外中止会引发具体错误值 executionError [SWS_EM_02545])以及相应的在其上下文中发生错误的功能组 functionGroup [SWS_EM_02546]。整个系统的上级实体充当另一个通信伙伴。解释:该监控实体可能会接收并评估该事件,以在组级别启动协调的响应措施。 问题 (未决)

diag_kontext Prozess 意外终止的进程 ExecutionErrorEvent ara::exec::ExecutionErrorEvent Prozess->ExecutionErrorEvent 提供 executionError Funktionsgruppe Funktionsgruppe Funktionsgruppe->ExecutionErrorEvent definiert functionGroup Fehlerueberwachung 错误监控 ExecutionErrorEvent->Fehlerueberwachung meldet Fehler an

上下文图:发生执行错误时相关组件的交互。来源:[SWS_EM_02545]、[SWS_EM_02546]

生命周期

被定义为 struct ExecutionErrorEvent final 表明该类型为最终的、非多态的数据结构,不包含继承关系。作为纯数据和值对象,该结构没有内部状态机,也没有独立的生命周期阶段。当进程意外终止且此事件被捕获时,实例才会由事件驱动精确生成。在生成时,两个公共成员变量被初始化:字段 executionError 包含进程的系统特定错误值 [SWS_EM_02545],字段 functionGroup 包含受影响功能组的实例 [SWS_EM_02546]。

关于所有权关系,该结构通常作为局部值对象生成,并通过按值复制或通过常量引用传递给处理例程和通知例程。对于对象本身,通常不需要动态内存分配。销毁在离开相应处理例程的作用域时确定性地发生。关于并发性,该结构未实现自身的访问同步。解释:如果 ExecutionErrorEvent 的实例跨线程边界传递,调用方必须对并发读写访问进行外部同步。 问题 Q-839283a2c3c3e269 (未决)

使用路径

典型的使用路径包括错误事件的检测、转发和评估:

  • 事件生成:处于活动状态的功能组内受监控的进程意外中止。系统随即实例化类型为 ExecutionErrorEvent 的对象。
  • 参数赋值:属性填充有该事件的上下文数据。具体错误值存储在字段 executionError 中 [SWS_EM_02545],而 functionGroup 负责分配给执行的功能组 [SWS_EM_02546]。
  • 传递给处理例程:初始化后的事件被转发给主管的错误监控或重启管理。
  • 评估与响应:接收实体分析 functionGroup [SWS_EM_02546] 以定位子系统,并读取 executionError [SWS_EM_02545]。解释:基于这些信息,监控实体可能会决定进程重启或功能组的状态切换。 问题 (未决)

错误场景

结构 ExecutionErrorEvent 本身不定义错误代码、返回值或异常。它仅充当在进程级别产生的错误状态的信息载体。因此,主要的错误场景是进程的意外终止,其原因反映在字段 executionError 中 [SWS_EM_02545]。

正确处理的前置条件是两个成员变量均被一致赋值。没有有效进程错误 [SWS_EM_02545] 或没有分配给现有功能组 [SWS_EM_02546] 的事件会妨碍有针对性的错误处理。事件评估的后置条件是受影响的功能组 [SWS_EM_02546] 应恢复到已定义的、安全的状态。

本指南基于 AUTOSAR 规范 Adaptive Platform R25-11。由 AI 管理助手整理。

UML 类图

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__exec__ExecutionErrorEvent906 «struct» ExecutionErrorEvent + executionError + functionGroup

常量

The execution error of the Process which unexpectedly terminated .

ExecutionError executionError;

The function group in which the error occurred .

FunctionGroup functionGroup;

常量 / 变量文档

变量 executionError [SWS_EM_02545] Upstream: RS_EM_00101, RS_AP_00124

ExecutionError executionError;

The execution error of the Process which unexpectedly terminated .

Header-Datei#include "ara/exec/execution_error_event.h"
Scopestruct ara::exec::ExecutionErrorEvent
SymbolexecutionError
TypExecutionError

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_EM_02545
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02545@rel:R25-11#390e51e7
Content hash
390e51e7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02545
Status: valid/unmigrated Version: rel:R25-11#643ebf55 Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_EM_02545@rel:R25-11#643ebf55
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#d89434332026-09-30
  • R20-11rel:R20-11#03f6c5dd2026-10-14
  • R21-11rel:R21-11#f4acfac22026-10-14
  • R22-11rel:R22-11#579adbee2026-10-14
  • R23-11rel:R23-11#643ebf552026-10-14
  • R24-11rel:R24-11#643ebf552026-10-14
  • R25-11rel:R25-11#643ebf552026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

变量 functionGroup [SWS_EM_02546] Upstream: RS_EM_00101, RS_AP_00124

FunctionGroup functionGroup;

The function group in which the error occurred .

Header-Datei#include "ara/exec/execution_error_event.h"
Scopestruct ara::exec::ExecutionErrorEvent
SymbolfunctionGroup
TypFunctionGroup

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_EM_02546
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02546@rel:R25-11#2f5bbe9c
Content hash
2f5bbe9c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02546
Status: valid/unmigrated Version: rel:R25-11#f89b2827 Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_EM_02546@rel:R25-11#f89b2827
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#1c8f49b42026-09-30
  • R20-11rel:R20-11#edb1ca8a2026-10-14
  • R21-11rel:R21-11#47507b502026-10-14
  • R22-11rel:R22-11#d8d390912026-10-14
  • R23-11rel:R23-11#6eaca9c42026-10-14
  • R24-11rel:R24-11#f89b28272026-10-14
  • R25-11rel:R25-11#f89b28272026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill