类 ara::core::ErrorCode
[SWS_CORE_00501] Upstream: RS_AP_00130 , RS_AP_00140
class ErrorCode final {...};
Encapsulation of an error code. An ErrorCode contains a raw error code value and an Error Domain. The raw error code value is specific to this ErrorDomain.
Header-Datei #include "ara/core/error_code.h" Forwarding-Header #include "ara/core/core_fwd.h" Scope namespace ara::core
用户指南人工智能生成 封装特定于域的错误代码和附加数据,以用于评估或转换为 C++ 异常。
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 747258139aa5
来源
未决问题(1)
摘要 详细
封装特定于域的错误代码和附加数据,以用于评估或转换为 C++ 异常。
由 autodocs-AI 基于 AUTOSAR Adaptive Platform R25-11 生成。
分组依据 类别 历史
成员图 类图 Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.
G
nara__core__ErrorCode330
ErrorCode
+ ErrorCode()
+ Domain()
+ Message()
+ SupportData()
+ ThrowAsException()
+ Value()
详细视图 此版本没有元素数据
构造函数和析构函数 Construct a new ErrorCode instance with parameters
重载 ErrorCode 2 方法 Return the ErrorDomain with which this ErrorCode is associated
constexpr const ErrorDomain & Domain () const noexcept;Return a textual representation of this ErrorCode
Return the supplementary error context data
constexpr ErrorDomain ::SupportDataType SupportData () const noexcept;Throw this error as exception.
void ThrowAsException () const noexcept(false);
Return the raw error code value
constexpr ErrorDomain ::CodeType Value () const noexcept;
点击条目以查看其关系。
基类 派生类 使用 被使用于 继承 自此版本起移除 用于 此类中无关联 函数 AI 评注 打开类页面 无法加载类页面。 调整顺序 调整宽度 调整大纲宽度 章节 阅读时间 SWS 引用 图表 放回中间 调整顺序或拖到标题栏 取消停靠 – 在内容中显示 移到中间栏 作为标签停靠到标题栏 元素 AI 模型 打开审计档案 档案 打开简短版本 打开中等版本 打开完整版本 恢复默认视图 已恢复默认视图 撤销 关闭详细视图 签名 基本信息 值 截至所选版本的最后一次更改 之后的下一次更改 单击:选择版本 无法放在此处:拖到标题栏可停靠,拖到中间栏可取消停靠。 新增 已更改 未更改 已移除 未包含 更改 内容无变化 首次出现于 移除于 没有可用的版本数据。 正在加载版本数据 … 文本 此版本未收录措辞 悬停或单击单元格:与所选版本比较 · 单击版本标题:选择版本 选择版本 属性 版本 元素 只有一个版本有措辞 PDF 中存在,原文尚未导入 首次采集原文 自 {rel} 起未更改 版本颜色 最早版本 最新版本
方法文档
constexpr const ErrorDomain & Domain () const noexcept;
Return the ErrorDomain with which this ErrorCode is associated
Header-Datei #include "ara/core/error_code.h" Scope class ara::core::ErrorCode Exception-Sicherheit exception safe Thread-Sicherheit thread-safe
Rückgabewert
Status: valid/unmigrated
Version: rel:R25-11#1831743f
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_00515@rel:R25-11#1831743f
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#fa6f8b092026-09-30 Inspect R19-11 rel:R19-11#4254a20d2026-10-14 Inspect R20-11 rel:R20-11#6403e3792026-10-14 Inspect R21-11 rel:R21-11#6403e3792026-10-14 Inspect R22-11 rel:R22-11#cdc632ba2026-10-14 Inspect R23-11 rel:R23-11#01e4faa02026-10-14 Inspect R24-11 rel:R24-11#cdddf8862026-10-14 Inspect R25-11 rel:R25-11#1831743f2026-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
template <typename EnumT> constexpr ErrorCode (EnumT e, ErrorDomain ::SupportDataType data=Error Domain ::SupportDataType()) noexcept;
Construct a new ErrorCode instance with parameters
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: aa921d126307
来源
未决问题(1)
说明:本使用说明由人工智能生成,完全基于 R25-11 版本的规范。
实现者指南即将推出(复杂度 I2)
Header-Datei #include "ara/core/error_code.h" Scope class ara::core::ErrorCode Exception-Sicherheit exception safe Thread-Sicherheit thread-safe
Template-Parameter
Parameter Beschreibung EnumT an enum type that contains error code values
Parameter (in)
Parameter Beschreibung e a domain-specific error code value data optional vendor-specific supplementary error context data
Hinweise: This constructor does not participate in overload resolution unless EnumT is an enum type
Status: valid/unmigrated
Version: rel:R25-11#e675e476
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_00512@rel:R25-11#e675e476
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#5864b7a32026-09-30 Inspect R19-11 rel:R19-11#0fbb118e2026-10-14 Inspect R20-11 rel:R20-11#6b3bdb972026-10-14 Inspect R21-11 rel:R21-11#6b3bdb972026-10-14 Inspect R22-11 rel:R22-11#e0d2de622026-10-14 Inspect R23-11 rel:R23-11#3805383a2026-10-14 Inspect R24-11 rel:R24-11#69cb1f702026-10-14 Inspect R25-11 rel:R25-11#e675e4762026-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
constexpr ErrorCode (ErrorDomain ::CodeType value, const ErrorDomain &domain, ErrorDomain ::SupportDataType data=ErrorDomain ::SupportData Type()) noexcept;
Construct a new ErrorCode instance with parameters
Header-Datei #include "ara/core/error_code.h" Scope class ara::core::ErrorCode Exception-Sicherheit exception safe Thread-Sicherheit thread-safe
Parameter (in)
Parameter Beschreibung value a domain-specific error code value domain the ErrorDomain associated with value data optional vendor-specific supplementary error context data
Status: valid/unmigrated
Version: rel:R25-11#09ef777c
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_00513@rel:R25-11#09ef777c
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#444e84e12026-09-30 Inspect R19-11 rel:R19-11#1a70fc152026-10-14 Inspect R20-11 rel:R20-11#9d20b01c2026-10-14 Inspect R21-11 rel:R21-11#6f3b40692026-10-14 Inspect R22-11 rel:R22-11#b18520df2026-10-14 Inspect R23-11 rel:R23-11#599a0f832026-10-14 Inspect R24-11 rel:R24-11#431bfc2a2026-10-14 Inspect R25-11 rel:R25-11#09ef777c2026-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
StringView Message () const noexcept;
Return a textual representation of this ErrorCode
Header-Datei #include "ara/core/error_code.h" Scope class ara::core::ErrorCode Exception-Sicherheit exception safe Thread-Sicherheit thread-safe
Rückgabewert
Typ Beschreibung StringView The description text of the error message
Status: valid/unmigrated
Version: rel:R25-11#922f3ee8
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_00518@rel:R25-11#922f3ee8
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#0992927d2026-09-30 Inspect R19-11 rel:R19-11#61bca1be2026-10-14 Inspect R20-11 rel:R20-11#37ddb2832026-10-14 Inspect R21-11 rel:R21-11#37ddb2832026-10-14 Inspect R22-11 rel:R22-11#7317251b2026-10-14 Inspect R23-11 rel:R23-11#0358e5832026-10-14 Inspect R24-11 rel:R24-11#1a1843532026-10-14 Inspect R25-11 rel:R25-11#922f3ee82026-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
constexpr ErrorDomain ::SupportDataType SupportData () const noexcept;
Return the supplementary error context data
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: f7a24bdeeedd
来源
头文件 #include "ara/core/error_code.h" 中类 ara::core::ErrorCode 的成员函数 SupportData() 返回错误的补充上下文数据 [SWS_CORE_00516] 。该方法在实例上同步调用,不需要参数,并返回类型为 ErrorDomain::SupportDataType 的值 [SWS_CORE_00516] 。通过声明为 constexpr 和 noexcept,调用保证无异常,并且可以在编译时进行求值 [SWS_CORE_00516] 。
关于并发性和执行安全性,该方法被指定为线程安全(thread-safe )以及异常安全(exception safe )[SWS_CORE_00516] 。由于这是对内部错误上下文的只读访问,因此不会出现错误状态,这使得该调用也适用于关键和并发执行路径 [SWS_CORE_00516] 。
在与其他错误处理接口的交互中,SupportData() 读取那些可选通过参数 data 传递给 ErrorCode 的构造函数的厂商特定附加数据 [SWS_CORE_00513] 。在使用 operator== 比较两个错误码时应注意,实例仅根据 Value() 和 Domain() 的返回值被评估为相等;明确不会将 SupportData() 的返回值用于相等性比较 [SWS_CORE_00571] 。
本使用说明基于 AUTOSAR Adaptive R25-11 规范自动生成。
Header-Datei #include "ara/core/error_code.h" Scope class ara::core::ErrorCode Exception-Sicherheit exception safe Thread-Sicherheit thread-safe
Rückgabewert
Typ Beschreibung ErrorDomain ::SupportDataTypethe supplementary error context data
Status: valid/unmigrated
Version: rel:R25-11#cd6d349c
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_00516@rel:R25-11#cd6d349c
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#dd12519a2026-09-30 Inspect R19-11 rel:R19-11#f353413f2026-10-14 Inspect R20-11 rel:R20-11#0e8a30502026-10-14 Inspect R21-11 rel:R21-11#8c3ebf4e2026-10-14 Inspect R22-11 rel:R22-11#dbd404532026-10-14 Inspect R23-11 rel:R23-11#c6ac50a92026-10-14 Inspect R24-11 rel:R24-11#2949be102026-10-14 Inspect R25-11 rel:R25-11#cd6d349c2026-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
void ThrowAsException () const noexcept(false);
Throw this error as exception.
This function will determine the appropriate exception type for this ErrorCode and throw it. The thrown exception will contain this ErrorCode.
用户指南
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 3205bd108ecb
来源
此使用说明基于 Release R25-11 的 AUTOSAR 规范。
实现者指南即将推出(复杂度 I1)
Header-Datei #include "ara/core/error_code.h" Scope class ara::core::ErrorCode Exception-Sicherheit not exception safe Thread-Sicherheit thread-safe
Rückgabewert
Exceptions Any exception of the type determined by the associated ErrorDomain as defined in [SWS_CORE_10953]
Hinweise: This function shall not participate in overload resolution when C++ exceptions are disabled in the compiler toolchain. Behaves as if this->Domain().ThrowAsException(*this).
Status: valid/unmigrated
Version: rel:R25-11#6858a44e
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_00519@rel:R25-11#6858a44e
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#48e89b2d2026-09-30 Inspect R19-11 rel:R19-11#678eb5a72026-10-14 Inspect R20-11 rel:R20-11#afb7b5682026-10-14 Inspect R21-11 rel:R21-11#afb7b5682026-10-14 Inspect R22-11 rel:R22-11#f01dd35b2026-10-14 Inspect R23-11 rel:R23-11#7edbb7432026-10-14 Inspect R24-11 rel:R24-11#32ee8f072026-10-14 Inspect R25-11 rel:R25-11#6858a44e2026-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
constexpr ErrorDomain ::CodeType Value () const noexcept;
Return the raw error code value
Header-Datei #include "ara/core/error_code.h" Scope class ara::core::ErrorCode Exception-Sicherheit exception safe Thread-Sicherheit thread-safe
Rückgabewert
Typ Beschreibung ErrorDomain ::CodeTypethe raw error code value
Status: valid/unmigrated
Version: rel:R25-11#7468c4e4
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_00514@rel:R25-11#7468c4e4
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#d6a896c22026-09-30 Inspect R19-11 rel:R19-11#712626e82026-10-14 Inspect R20-11 rel:R20-11#e25634362026-10-14 Inspect R21-11 rel:R21-11#e25634362026-10-14 Inspect R22-11 rel:R22-11#24268b5e2026-10-14 Inspect R23-11 rel:R23-11#cbbb65bf2026-10-14 Inspect R24-11 rel:R24-11#e4046a7d2026-10-14 Inspect R25-11 rel:R25-11#7468c4e42026-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 · 德文原文