DEENESPTFRRUARHIKOZHNL

类 ara::rds::RdsErrorDomain

Diese 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"
Scopenamespace ara::rds

用户指南人工智能生成

封装 Raw Data Stream 功能集群中各操作的错误码、诊断消息和异常类型。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 81f3fdb4f855 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

封装 Raw Data Stream 功能集群中各操作的错误码、诊断消息和异常类型。

错误域 ara::rds::RdsErrorDomain 根据 AUTOSAR_AP_SWS_RawDataStream §1 “Raw Data Stream” 识别并分类 Raw Data Stream 模块的特定错误状态。它提供关联的错误消息文本,并允许将错误作为异常抛出 [SWS_RDS_11296]。由于默认构造函数已被删除 [SWS_RDS_11294],应用程序通过自由函数 GetRdsErrorDomain() 访问核心实例 [SWS_RDS_11298]。

上下文

类 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 进行错误处理与异常抛出应用RdsErrorDomainRdsExceptionGetRdsErrorDomain()const ara::core::ErrorDomain&altDiagnosetext abfragenMessage(errorCode)const char* (Fehlermeldung)Ausnahme werfenThrowAsException(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 规范生成。

成员图

构造函数和析构函数

1

类型别名

2

详细视图

请在大纲中选择一个条目。

构造函数和析构函数

Default construction is not available.

RdsErrorDomain()=delete;

方法

Message 函数

Returns the error message.

const char *Message(CodeType errorCode) const noexcept override;
Name 函数

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;

类型别名

Errc 类型别名

Alias for RDS error enumeration.

using Errc = RdsErrc;
Exception 类型别名

Alias for RDS exception type.

using Exception = RdsException;

方法与类型文档

类型别名 Errc [SWS_RDS_11326]

using Errc = RdsErrc;

Alias for RDS error enumeration.

Header-Datei#include "ara/rds/rds_error_domain.h"
Scopeclass ara::rds::RdsErrorDomain

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

Record
AUTOSAR/AP/record/SWS_RDS_11326
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_RDS_11326@rel:R25-11#24bb67f4
Content hash
24bb67f4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_RawDataStream.pdf#nameddest=SWS_RDS_11326
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:
Recorded Revisions (3):
  • R25-11rel:R25-11#c8327f212026-09-30
  • R24-11rel:R24-11#144565cf2026-10-14
  • R25-11rel:R25-11#94ff0a092026-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

类型别名 Exception [SWS_RDS_11327]

using Exception = RdsException;

Alias for RDS exception type.

Header-Datei#include "ara/rds/rds_error_domain.h"
Scopeclass ara::rds::RdsErrorDomain

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

Record
AUTOSAR/AP/record/SWS_RDS_11327
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_RDS_11327@rel:R25-11#be0d5bf0
Content hash
be0d5bf0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_RawDataStream.pdf#nameddest=SWS_RDS_11327
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:
Recorded Revisions (3):
  • R25-11rel:R25-11#36d133302026-09-30
  • R24-11rel:R24-11#1fedd24e2026-10-14
  • R25-11rel:R25-11#21bb875f2026-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

函数 RdsErrorDomain [SWS_RDS_11294]

RdsErrorDomain()=delete;

Default construction is not available.

Header-Datei#include "ara/rds/rds_error_domain.h"
Scopeclass ara::rds::RdsErrorDomain

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

Record
AUTOSAR/AP/record/SWS_RDS_11294
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_RDS_11294@rel:R25-11#51668e4a
Content hash
51668e4a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_RawDataStream.pdf#nameddest=SWS_RDS_11294
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:
Recorded Revisions (4):
  • R25-11rel:R25-11#5b9df14b2026-09-30
  • R23-11rel:R23-11#3463713e2026-10-14
  • R24-11rel:R24-11#d4499d3c2026-10-14
  • R25-11rel:R25-11#1ea755052026-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

函数 Message [SWS_RDS_11296]

const char *Message(CodeType errorCode) const noexcept override;

Returns the error message.

Header-Datei#include "ara/rds/rds_error_domain.h"
Scopeclass ara::rds::RdsErrorDomain

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

Record
AUTOSAR/AP/record/SWS_RDS_11296
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_RDS_11296@rel:R25-11#ef2b13d9
Content hash
ef2b13d9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_RawDataStream.pdf#nameddest=SWS_RDS_11296
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:
Recorded Revisions (4):
  • R25-11rel:R25-11#a75ddc3a2026-09-30
  • R23-11rel:R23-11#d034c3302026-10-14
  • R24-11rel:R24-11#a6889a7d2026-10-14
  • R25-11rel:R25-11#2b5869552026-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

函数 Name [SWS_RDS_11295]

const char *Name() const noexcept override;

Returns the error-domain name.

Header-Datei#include "ara/rds/rds_error_domain.h"
Scopeclass ara::rds::RdsErrorDomain

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

Record
AUTOSAR/AP/record/SWS_RDS_11295
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_RDS_11295@rel:R25-11#529be474
Content hash
529be474
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_RawDataStream.pdf#nameddest=SWS_RDS_11295
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:
Recorded Revisions (4):
  • R25-11rel:R25-11#e3767bf32026-09-30
  • R23-11rel:R23-11#26a4e5f62026-10-14
  • R24-11rel:R24-11#73b131092026-10-14
  • R25-11rel:R25-11#d1b0e6cd2026-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

函数 ThrowAsException [SWS_RDS_11297]

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"
Scopeclass ara::rds::RdsErrorDomain

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

Record
AUTOSAR/AP/record/SWS_RDS_11297
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_RDS_11297@rel:R25-11#89cfac9a
Content hash
89cfac9a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_RawDataStream.pdf#nameddest=SWS_RDS_11297
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:
Recorded Revisions (4):
  • R25-11rel:R25-11#d1842e562026-09-30
  • R23-11rel:R23-11#d4e06e202026-10-14
  • R24-11rel:R24-11#8a27c9032026-10-14
  • R25-11rel:R25-11#6d26902c2026-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