类 ara::com::ComException
[SWS_CM_11327] Upstream: RS_AP_00130 , RS_AP_00122 , RS_AP_00127
class ComException final : public ara::core::Exception {...};
Defines a class for exceptions to be thrown by the API.
Header-Datei #include "ara/com/com_error_domain.h" Forwarding-Header #include "ara/com/com_fwd.h" Scope namespace ara::com Basisklasse(n) ara::core::Exception
用户指南人工智能生成 用作通过错误码封装并报告通信管理错误的 API 异常类。
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: becb2133e102
来源
未决问题(2)
摘要 详细
用作通过错误码封装并报告通信管理错误的 API 异常类。
类 ara::com::ComException 在 AUTOSAR Adaptive 中用作核心异常类,用于在调用通信 API 时发出错误信号 [SWS_CM_11327] 。它封装了一个 ara::core::ErrorCode,在操作失败时被实例化并抛出,其构造函数被定义为异常安全且不抛出异常 [SWS_CM_11328] 。如果在编译器工具链中禁用了 C++ 异常,则相应的抛出异常的 API 重载将完全从重载解析中排除。调用方捕获该异常对象以分析所包含的错误码并采取错误处理措施。
更多 ›
本指南基于 AUTOSAR Adaptive R25-11 规范。所有说明和引用均仅基于所提供的规范摘录。
UML 类图 Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.
G
nara__com__ComException152
ComException
+ ComException()
nara__core__Exception792
Exception
nara__com__ComException152->nara__core__Exception792
nstd__exception10
std::exception
nara__core__Exception792->nstd__exception10
此版本没有元素数据
构造函数和析构函数 Constructs a new ara::com::ComException containing an ara::core::ErrorCode
方法文档
explicit ComException (ara::core::ErrorCode errorCode) noexcept;
Header-Datei #include "ara/com/com_error_domain.h" Scope class ara::com::ComException Exception-Sicherheit exception safe
Parameter (in)
Parameter Beschreibung errorCode The error code.
Status: valid/unmigrated
Version: rel:R25-11#5e7d893a
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_CM_11328@rel:R25-11#5e7d893a
Point-in-Time History:
Release:
R25-11 (Current / Active) R20-11 R21-11 R22-11 R23-11 R24-11 R19-11
View Snapshot
Recorded Revisions (7):
R25-11 rel:R25-11#ffcd75022026-09-30 Inspect R20-11 rel:R20-11#4a6338102026-10-14 Inspect R21-11 rel:R21-11#4a6338102026-10-14 Inspect R22-11 rel:R22-11#17139dec2026-10-14 Inspect R23-11 rel:R23-11#41e9e0262026-10-14 Inspect R24-11 rel:R24-11#94963f6e2026-10-14 Inspect R25-11 rel:R25-11#5e7d893a2026-10-14 active Inspect
Historical Snapshot:
× Back to current
🚫
Requirement entfallen: Dieses Element ist im gewählten Release nicht mehr enthalten.
Requirement Text as-of this release:
Reachable Artifacts & Dependents:
Date Actor Transition Reason / Rationale Campaign
2026-08-13 tool none → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record 2026-08-13-status-backfill
gemini-3.8-flash-low· 2026-10-13 · 德文原文