类 ara::rds::RdsErrorDomainDiese Seite wurde vollständig KI-generiert auf Basis von SWS Raw Data Stream (R25-11) — kein offizieller AUTOSAR-Text und keine automatisch extrahierte API-Seite wie die übrigen Module. Als Interpretation gekennzeichnete Aussagen sind Schlussfolgerungen aus den Quellen.
[SWS_RDS_11293] · Header ara/rds/rds_error_domain.h
class RdsErrorDomain final : public ara::core::ErrorDomain {...}; Error domain of Raw Data Stream.
Header-Datei #include "ara/rds/rds_error_domain.h" Scope namespace ara::rds
用户指南人工智能生成 封装 Raw Data Stream 功能集群中各操作的错误码、诊断消息和异常类型。
AI 生成
未审核
模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 81f3fdb4f855
来源
未决问题(2)
摘要 详细
封装 Raw Data Stream 功能集群中各操作的错误码、诊断消息和异常类型。
上下文
类 ara::rds::RdsErrorDomain 表示 Adaptive Platform 上 Raw Data Stream(RDS)功能集群的特定错误域 AUTOSAR_AP_SWS_RawDataStream §1 “Raw Data Stream” 。作为基类 ara::core::ErrorDomain 的特化,它将与数据流相关的错误状态集成到 AUTOSAR 平台范围的错误处理模型中。该类的核心任务包括通过方法 Name() 提供唯一的域名 [SWS_RDS_11295] ,以及通过 Message() 将错误码映射到含义明确的诊断消息 [SWS_RDS_11296] 。
为了在客户端代码中实现一致的处理,该域定义了标准化的类型别名:别名 Errc 指向枚举 RdsErrc [SWS_RDS_11326] ,而类型别名 Exception 则绑定到异常类型 RdsException [SWS_RDS_11327] 。交互对象主要包括应用程序组件、流式端点以及用于识别所发生错误的基础设施类型 ara::core::ErrorCode 和 ara::core::Result。
生命周期
ara::rds::RdsErrorDomain 的实例遵循严格控制的生命周期。客户端代码的直接实例化被显式禁止,因为默认构造函数已被删除(=delete)[SWS_RDS_11294] 。作为替代,访问通过全局辅助函数 GetRdsErrorDomain() 实现,该函数返回对该域的常量引用 [SWS_RDS_11298] 。
解释:推测该错误域实现为长生命周期的单例,在进程的整个执行期间持续存在。 问题 (未决) 由于所有查询接口(如 Name() [SWS_RDS_11295] 以及 Message() [SWS_RDS_11296] )均声明为 const 和 noexcept,因此多个线程可以进行线程安全的并发读取访问,而无需同步开销。
使用路径
当 Raw Data Stream 的某项操作失败且必须分析或传播相应的错误对象时,就会进入典型使用路径。应用程序或中间件层通常会接收到绑定到该域的错误对象,或者直接通过 GetRdsErrorDomain() 引用该域 [SWS_RDS_11298] 。通过方法 Message(),可以在运行时查询错误码对应的文本并在日志输出中记录 [SWS_RDS_11296] 。
如果应用程序的错误处理策略基于 C++ 异常,则调用方法 ThrowAsException() [SWS_RDS_11297] 。这会将传入的 ara::core::ErrorCode 转换为类型为 RdsException 的异常,该异常通过类型别名 Exception 指定 [SWS_RDS_11327] 。
通过 RdsErrorDomain 进行错误处理与异常抛出 应用 RdsErrorDomain RdsException GetRdsErrorDomain() const ara::core::ErrorDomain& alt Diagnosetext abfragen Message(errorCode) const char* (Fehlermeldung) Ausnahme werfen ThrowAsException(errorCode) throw RdsException(errorCode)
时序图:通过 Raw Data Stream 错误域进行错误处理和抛出异常的典型流程。来源:[SWS_RDS_11296] ,[SWS_RDS_11297] ,[SWS_RDS_11298]
错误场景
在错误域本身的上下文中,常规查询期间不会发生异常:标识与本地化方法 Name() [SWS_RDS_11295] 以及 Message() [SWS_RDS_11296] 通过其 noexcept 规范保证无错。访问函数 GetRdsErrorDomain() 也绝不会失败 [SWS_RDS_11298] 。
主要错误场景涉及异常处理:若调用方使用有效的 ara::core::ErrorCode 调用 ThrowAsException(),该方法不会正常退出,而是强制抛出类型为 RdsException 的异常(noexcept(false))[SWS_RDS_11297] 。该调用的前置条件是传递来自该域的一致错误码;后置条件是在调用方上下文中触发该异常,以便在相应的 catch 块中进行进一步处理。
本指南由 AI 基于 AUTOSAR R25-11 规范生成。
分组依据 类别 历史
此版本没有元素数据
构造函数和析构函数 Default construction is not available.
RdsErrorDomain()=delete;
方法 Returns the error message.
const char *Message(CodeType errorCode) const noexcept override;
Returns the error-domain name.
const char *Name() const noexcept override;
Throws the error as RdsException.
void ThrowAsException(const ara::core::ErrorCode &errorCode) const noexcept(false) override;
类型别名 Alias for RDS error enumeration.
using Errc = RdsErrc;
Alias for RDS exception type.
using Exception = RdsException;
点击条目以查看其关系。
基类 派生类 使用 被使用于 继承 自此版本起移除 用于 此类中无关联 函数 AI 评注 打开类页面 无法加载类页面。 调整顺序 调整宽度 调整大纲宽度 章节 阅读时间 SWS 引用 图表 放回中间 调整顺序或拖到标题栏 取消停靠 – 在内容中显示 移到中间栏 作为标签停靠到标题栏 元素 AI 模型 打开审计档案 档案 打开简短版本 打开中等版本 打开完整版本 恢复默认视图 已恢复默认视图 撤销 关闭详细视图 签名 基本信息 值 截至所选版本的最后一次更改 之后的下一次更改 单击:选择版本 无法放在此处:拖到标题栏可停靠,拖到中间栏可取消停靠。 新增 已更改 未更改 已移除 未包含 更改 内容无变化 首次出现于 移除于 没有可用的版本数据。 正在加载版本数据 … 文本 此版本未收录措辞 悬停或单击单元格:与所选版本比较 · 单击版本标题:选择版本 选择版本 属性 版本 元素 只有一个版本有措辞 PDF 中存在,原文尚未导入 首次采集原文 自 {rel} 起未更改 版本颜色 最早版本 最新版本
方法与类型文档 using Errc = RdsErrc; Alias for RDS error enumeration.
Header-Datei #include "ara/rds/rds_error_domain.h" Scope class ara::rds::RdsErrorDomain
Status: valid/unmigrated
Version: rel:R25-11#94ff0a09
Versionshistorie & Revisions (1 transition, 3 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_RDS_11326@rel:R25-11#94ff0a09
Point-in-Time History:
Release:
R25-11 (Current / Active) R24-11 R20-11 R19-11
View Snapshot
Recorded Revisions (3):
R25-11 rel:R25-11#c8327f212026-09-30 Inspect R24-11 rel:R24-11#144565cf2026-10-14 Inspect R25-11 rel:R25-11#94ff0a092026-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
using Exception = RdsException; Alias for RDS exception type.
Header-Datei #include "ara/rds/rds_error_domain.h" Scope class ara::rds::RdsErrorDomain
Status: valid/unmigrated
Version: rel:R25-11#21bb875f
Versionshistorie & Revisions (1 transition, 3 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_RDS_11327@rel:R25-11#21bb875f
Point-in-Time History:
Release:
R25-11 (Current / Active) R24-11 R20-11 R19-11
View Snapshot
Recorded Revisions (3):
R25-11 rel:R25-11#36d133302026-09-30 Inspect R24-11 rel:R24-11#1fedd24e2026-10-14 Inspect R25-11 rel:R25-11#21bb875f2026-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
RdsErrorDomain()=delete; Default construction is not available.
Header-Datei #include "ara/rds/rds_error_domain.h" Scope class ara::rds::RdsErrorDomain
Status: valid/unmigrated
Version: rel:R25-11#1ea75505
Versionshistorie & Revisions (1 transition, 4 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_RDS_11294@rel:R25-11#1ea75505
Point-in-Time History:
Release:
R25-11 (Current / Active) R23-11 R24-11 R20-11 R19-11
View Snapshot
Recorded Revisions (4):
R25-11 rel:R25-11#5b9df14b2026-09-30 Inspect R23-11 rel:R23-11#3463713e2026-10-14 Inspect R24-11 rel:R24-11#d4499d3c2026-10-14 Inspect R25-11 rel:R25-11#1ea755052026-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 *Message(CodeType errorCode) const noexcept override; Returns the error message.
Header-Datei #include "ara/rds/rds_error_domain.h" Scope class ara::rds::RdsErrorDomain
Status: valid/unmigrated
Version: rel:R25-11#2b586955
Versionshistorie & Revisions (1 transition, 4 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_RDS_11296@rel:R25-11#2b586955
Point-in-Time History:
Release:
R25-11 (Current / Active) R23-11 R24-11 R20-11 R19-11
View Snapshot
Recorded Revisions (4):
R25-11 rel:R25-11#a75ddc3a2026-09-30 Inspect R23-11 rel:R23-11#d034c3302026-10-14 Inspect R24-11 rel:R24-11#a6889a7d2026-10-14 Inspect R25-11 rel:R25-11#2b5869552026-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 *Name() const noexcept override; Returns the error-domain name.
Header-Datei #include "ara/rds/rds_error_domain.h" Scope class ara::rds::RdsErrorDomain
Status: valid/unmigrated
Version: rel:R25-11#d1b0e6cd
Versionshistorie & Revisions (1 transition, 4 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_RDS_11295@rel:R25-11#d1b0e6cd
Point-in-Time History:
Release:
R25-11 (Current / Active) R23-11 R24-11 R20-11 R19-11
View Snapshot
Recorded Revisions (4):
R25-11 rel:R25-11#e3767bf32026-09-30 Inspect R23-11 rel:R23-11#26a4e5f62026-10-14 Inspect R24-11 rel:R24-11#73b131092026-10-14 Inspect R25-11 rel:R25-11#d1b0e6cd2026-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 ara::core::ErrorCode &errorCode) const noexcept(false) override; Throws the error as RdsException.
Header-Datei #include "ara/rds/rds_error_domain.h" Scope class ara::rds::RdsErrorDomain
Status: valid/unmigrated
Version: rel:R25-11#6d26902c
Versionshistorie & Revisions (1 transition, 4 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_RDS_11297@rel:R25-11#6d26902c
Point-in-Time History:
Release:
R25-11 (Current / Active) R23-11 R24-11 R20-11 R19-11
View Snapshot
Recorded Revisions (4):
R25-11 rel:R25-11#d1842e562026-09-30 Inspect R23-11 rel:R23-11#d4e06e202026-10-14 Inspect R24-11 rel:R24-11#8a27c9032026-10-14 Inspect R25-11 rel:R25-11#6d26902c2026-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 · 德文原文