类 ara::core::Exception
[SWS_CORE_00601] Upstream: RS_AP_00130
class Exception : public exception {...};
Base type for all ARA exception types
Header-Datei #include "ara/core/exception.h" Forwarding-Header #include "ara/core/core_fwd.h" Scope namespace ara::core Basisklasse(n) std::exception
用户指南人工智能生成 用作所有 AUTOSAR 异常的基类,并封装线程安全的错误代码以供求值。
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: d4eaa8466f70
来源
未决问题(1)
摘要 详细
用作所有 AUTOSAR 异常的基类,并封装线程安全的错误代码以供求值。
类 ara::core::Exception 用作 Adaptive Platform 所有异常类型的公共基类,并将 ErrorCode 嵌入到标准化的 C++ 异常体系结构中 [SWS_CORE_00611] 。当发生错误时,它将该错误代码以线程安全的方式传递给处理程序,处理程序可通过 Error() 或派生的标准方法 what() 对其进行求值 [SWS_CORE_00613] 。所有操作均严格具备异常安全性,并声明为 noexcept。为了杜绝派生类型意外发生对象切片(Object Slicing),复制操作被实现为受保护的。
更多 ›
本指南基于 AUTOSAR Adaptive Platform 规范 Release R25-11。
分组依据 类别 历史
成员图 类图 Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.
G
nara__core__Exception792
Exception
+ Exception()
+ operator=()
+ ~Exception()
+ Error()
+ what()
nstd__exception10
std::exception
nara__core__Exception792->nstd__exception10
napext__com__secoc__ComSecOcFvmException158
ComSecOcFvmException
napext__com__secoc__ComSecOcFvmException158->nara__core__Exception792
napext__tsync__TsyncFvmException780
TsyncFvmException
napext__tsync__TsyncFvmException780->nara__core__Exception792
nara__com__ComException152
ComException
nara__com__ComException152->nara__core__Exception792
nara__com__e2e__ComE2EException703
ComE2EException
nara__com__e2e__ComE2EException703->nara__core__Exception792
nara__core__CoreException713
CoreException
nara__core__CoreException713->nara__core__Exception792
nara__core__FutureException511
FutureException
nara__core__FutureException511->nara__core__Exception792
nara__crypto__CryptoException764
CryptoException
nara__crypto__CryptoException764->nara__core__Exception792
nara__diag__DiagException942
DiagException
nara__diag__DiagException942->nara__core__Exception792
nara__diag__DiagOfferException442
DiagOfferException
nara__diag__DiagOfferException442->nara__core__Exception792
nara__diag__DiagReportingException911
DiagReportingException
nara__diag__DiagReportingException911->nara__core__Exception792
nara__diag__DiagSovdException335
DiagSovdException
nara__diag__DiagSovdException335->nara__core__Exception792
nara__diag__DiagUdsNrcException343
DiagUdsNrcException
nara__diag__DiagUdsNrcException343->nara__core__Exception792
nara__exec__ExecException556
ExecException
nara__exec__ExecException556->nara__core__Exception792
nara__per__PerException768
PerException
nara__per__PerException768->nara__core__Exception792
nara__phm__PhmException101
PhmException
nara__phm__PhmException101->nara__core__Exception792
nara__sm__SmException872
SmException
nara__sm__SmException872->nara__core__Exception792
nara__tsync__TsyncException184
TsyncException
nara__tsync__TsyncException184->nara__core__Exception792
详细视图 此版本没有元素数据
构造函数和析构函数 Construct a new Exception object with a specific ErrorCode
重载 Exception 3 方法 Return the embedded ErrorCode that was given to the constructor
Return the explanatory string. This function overrides the virtual function std::exception:: what. All guarantees about the lifetime of the returned pointer that are given for std::exception::what are preserved. ≙ std::exception::
const char * what () const noexcept override;
运算符 Copy assignment operator
重载 = 2
点击条目以查看其关系。
基类 派生类 使用 被使用于 继承 自此版本起移除 用于 此类中无关联 函数 AI 评注 打开类页面 无法加载类页面。 调整顺序 调整宽度 调整大纲宽度 章节 阅读时间 SWS 引用 图表 放回中间 调整顺序或拖到标题栏 取消停靠 – 在内容中显示 移到中间栏 作为标签停靠到标题栏 元素 AI 模型 打开审计档案 档案 打开简短版本 打开中等版本 打开完整版本 恢复默认视图 已恢复默认视图 撤销 关闭详细视图 签名 基本信息 值 截至所选版本的最后一次更改 之后的下一次更改 单击:选择版本 无法放在此处:拖到标题栏可停靠,拖到中间栏可取消停靠。 新增 已更改 未更改 已移除 未包含 更改 内容无变化 首次出现于 移除于 没有可用的版本数据。 正在加载版本数据 … 文本 此版本未收录措辞 悬停或单击单元格:与所选版本比较 · 单击版本标题:选择版本 选择版本 属性 版本 元素 只有一个版本有措辞 PDF 中存在,原文尚未导入 首次采集原文 自 {rel} 起未更改 版本颜色 最早版本 最新版本
方法文档
const ErrorCode & Error () const noexcept;
Return the embedded ErrorCode that was given to the constructor
Header-Datei #include "ara/core/exception.h" Scope class ara::core::Exception Exception-Sicherheit exception safe Thread-Sicherheit thread-safe
Rückgabewert
Typ Beschreibung const ErrorCode & reference to the embedded ErrorCode
Status: valid/unmigrated
Version: rel:R25-11#768fb30b
Versionshistorie & Revisions (1 transition, 8 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_CORE_00613@rel:R25-11#768fb30b
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#427b88162026-09-30 Inspect R19-11 rel:R19-11#11313e132026-10-14 Inspect R20-11 rel:R20-11#60c96c392026-10-14 Inspect R21-11 rel:R21-11#51ca3dce2026-10-14 Inspect R22-11 rel:R22-11#04096f212026-10-14 Inspect R23-11 rel:R23-11#e6cdb2be2026-10-14 Inspect R24-11 rel:R24-11#538a90522026-10-14 Inspect R25-11 rel:R25-11#768fb30b2026-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
explicit Exception (ErrorCode err) noexcept;
Construct a new Exception object with a specific ErrorCode
Header-Datei #include "ara/core/exception.h" Scope class ara::core::Exception Exception-Sicherheit exception safe Thread-Sicherheit thread-safe
Parameter (in)
Parameter Beschreibung err the ErrorCode
Status: valid/unmigrated
Version: rel:R25-11#4a7f399f
Versionshistorie & Revisions (1 transition, 8 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_CORE_00611@rel:R25-11#4a7f399f
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#eb72a7632026-09-30 Inspect R19-11 rel:R19-11#94d626ce2026-10-14 Inspect R20-11 rel:R20-11#ac6eb9352026-10-14 Inspect R21-11 rel:R21-11#2f59dd412026-10-14 Inspect R22-11 rel:R22-11#211731882026-10-14 Inspect R23-11 rel:R23-11#cf9a6fa22026-10-14 Inspect R24-11 rel:R24-11#d3d5d4b82026-10-14 Inspect R25-11 rel:R25-11#4a7f399f2026-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
Exception (Exception &&other) noexcept=default;
Header-Datei #include "ara/core/exception.h" Scope class ara::core::Exception Exception-Sicherheit exception safe
Parameter (in)
Parameter Beschreibung other the other instance to move from
Status: valid/unmigrated
Version: rel:R25-11#430cfd8b
Versionshistorie & Revisions (1 transition, 5 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_CORE_00615@rel:R25-11#430cfd8b
Point-in-Time History:
Release:
R25-11 (Current / Active) R22-11 R23-11 R24-11 R20-11 R19-11
View Snapshot
Recorded Revisions (5):
R25-11 rel:R25-11#2fbd2fce2026-09-30 Inspect R22-11 rel:R22-11#095dd28c2026-10-14 Inspect R23-11 rel:R23-11#a22844c12026-10-14 Inspect R24-11 rel:R24-11#c20d19892026-10-14 Inspect R25-11 rel:R25-11#430cfd8b2026-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
Exception (const Exception &other) noexcept=default;
Header-Datei #include "ara/core/exception.h" Scope class ara::core::Exception Exception-Sicherheit exception safe Sichtbarkeit protected
Parameter (in)
Parameter Beschreibung other the other instance
Hinweise: This function has protected access specifier in order to prevent some opportunities for accidental object slicing
Status: valid/unmigrated
Version: rel:R25-11#96699454
Versionshistorie & Revisions (1 transition, 5 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_CORE_00618@rel:R25-11#96699454
Point-in-Time History:
Release:
R25-11 (Current / Active) R22-11 R23-11 R24-11 R20-11 R19-11
View Snapshot
Recorded Revisions (5):
R25-11 rel:R25-11#f169ce042026-09-30 Inspect R22-11 rel:R22-11#475a09972026-10-14 Inspect R23-11 rel:R23-11#c7c458632026-10-14 Inspect R24-11 rel:R24-11#03f9f8d22026-10-14 Inspect R25-11 rel:R25-11#966994542026-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
Exception & operator= (const Exception &other) noexcept=default;
Header-Datei #include "ara/core/exception.h" Scope class ara::core::Exception Exception-Sicherheit exception safe Sichtbarkeit protected
Parameter (in)
Parameter Beschreibung other the other instance
Rückgabewert
Hinweise: This function has protected access specifier in order to prevent some opportunities for accidental object slicing
Status: valid/unmigrated
Version: rel:R25-11#0a81f511
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_CORE_00614@rel:R25-11#0a81f511
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#63a7a2e52026-09-30 Inspect R20-11 rel:R20-11#1ef5644f2026-10-14 Inspect R21-11 rel:R21-11#1ef5644f2026-10-14 Inspect R22-11 rel:R22-11#4036011d2026-10-14 Inspect R23-11 rel:R23-11#0996bea22026-10-14 Inspect R24-11 rel:R24-11#ad63d8312026-10-14 Inspect R25-11 rel:R25-11#0a81f5112026-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
Exception & operator= (Exception &&other) & noexcept=default;
Header-Datei #include "ara/core/exception.h" Scope class ara::core::Exception Exception-Sicherheit exception safe
Parameter (in)
Parameter Beschreibung other the other instance to move from
Rückgabewert
Status: valid/unmigrated
Version: rel:R25-11#eb8d2ad7
Versionshistorie & Revisions (1 transition, 5 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_CORE_00616@rel:R25-11#eb8d2ad7
Point-in-Time History:
Release:
R25-11 (Current / Active) R22-11 R23-11 R24-11 R20-11 R19-11
View Snapshot
Recorded Revisions (5):
R25-11 rel:R25-11#cf7be0402026-09-30 Inspect R22-11 rel:R22-11#62dd53c82026-10-14 Inspect R23-11 rel:R23-11#16771f172026-10-14 Inspect R24-11 rel:R24-11#03c97c992026-10-14 Inspect R25-11 rel:R25-11#eb8d2ad72026-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
const char * what () const noexcept override;
Return the explanatory string. This function overrides the virtual function std::exception:: what. All guarantees about the lifetime of the returned pointer that are given for std::exception::what are preserved.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 1b4e9bb17f9a
来源
本使用说明自动生成。
Header-Datei #include "ara/core/exception.h" Scope class ara::core::Exception Exception-Sicherheit exception safe Thread-Sicherheit thread-safe
Rückgabewert
Typ Beschreibung const char * a null-terminated string
Status: valid/unmigrated
Version: rel:R25-11#4dc7ac4e
Versionshistorie & Revisions (1 transition, 8 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_CORE_00612@rel:R25-11#4dc7ac4e
Point-in-Time History:
Release:
R25-11 (Current / Active) R19-11 R20-11 R21-11 R22-11 R23-11 R24-11
View Snapshot
Recorded Revisions (8):
R25-11 rel:R25-11#b339be862026-09-30 Inspect R19-11 rel:R19-11#c863b8c62026-10-14 Inspect R20-11 rel:R20-11#ef5213282026-10-14 Inspect R21-11 rel:R21-11#ef5213282026-10-14 Inspect R22-11 rel:R22-11#35f8a78d2026-10-14 Inspect R23-11 rel:R23-11#0d1482f32026-10-14 Inspect R24-11 rel:R24-11#260c2d462026-10-14 Inspect R25-11 rel:R25-11#4dc7ac4e2026-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
~Exception () noexcept override=default;
Header-Datei #include "ara/core/exception.h" Scope class ara::core::Exception Exception-Sicherheit exception safe
Status: valid/unmigrated
Version: rel:R25-11#f3733454
Versionshistorie & Revisions (1 transition, 5 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_CORE_00617@rel:R25-11#f3733454
Point-in-Time History:
Release:
R25-11 (Current / Active) R22-11 R23-11 R24-11 R20-11 R19-11
View Snapshot
Recorded Revisions (5):
R25-11 rel:R25-11#6ae22c3b2026-09-30 Inspect R22-11 rel:R22-11#c4c5573b2026-10-14 Inspect R23-11 rel:R23-11#08d2767c2026-10-14 Inspect R24-11 rel:R24-11#8a264f6d2026-10-14 Inspect R25-11 rel:R25-11#f37334542026-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 · 德文原文