DEENESPTFRRUARHIKOZHNL

类 ara::idsm::IdsmErrorDomain

Diese Seite wurde vollständig KI-generiert auf Basis von SWS IntrusionDetectionSystemManager (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.

Header: ara/idsm/idsm_error_domain.h · Spezifikationselemente: 7

用户指南人工智能生成

定义 Intrusion Detection System Manager 的错误域,用于分配错误码和异常。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 5ad009b86550 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

定义 Intrusion Detection System Manager 的错误域,用于分配错误码和异常。

该类将 Intrusion Detection System Manager 模块接入 AUTOSAR Adaptive Platform 的错误处理系统,并定义领域特定的错误码以及异常 [SWS_AIDSM_10706]。其主要任务包括标识该域、为错误码提供易读的错误消息,以及通过 ThrowAsException 将错误转换为类型化异常 [SWS_AIDSM_10712]。由于默认构造函数已被删除,推测通常通过全局实例进行访问,该实例的方法调用被指定为完全线程安全。 问题 (未决)

上下文

在 AUTOSAR Adaptive Platform 的模块 idsm 中,类 ara::idsm::IdsmErrorDomain 充当核心错误域,用于识别和分类 Intrusion Detection System Manager 的系统特定错误状态 [SWS_AIDSM_10706]。作为基类 ara::core::ErrorDomain 的 final 特化,它将 IdsM 子系统无缝集成到 Adaptive Platform 统一的错误处理模型中 [SWS_AIDSM_10706]。该类定义于头文件 ara/idsm/idsm_error_domain.h 中。

在错误架构内部,该类关联了用于 IdsM 错误处理的相关类型定义:通过类型别名 Errc 引用领域特定的错误码枚举 IdsmErrc [SWS_AIDSM_10707],而类型别名 Exception 则绑定到模块特定的异常类 IdsmException [SWS_AIDSM_10708]。此外,它通过重写的方法 Name() 为诊断和日志记录用途提供该域的唯一标识符 [SWS_AIDSM_10710]。

IdsmErrorDomainContext idsm_client IdsM-Anwendung idsm_error_domain ara::idsm::IdsmErrorDomain idsm_client->idsm_error_domain 查询名称和消息 core_domain ara::core::ErrorDomain idsm_error_domain->core_domain erbt von idsm_errc ara::idsm::IdsmErrc idsm_error_domain->idsm_errc definiert Errc idsm_exception ara::idsm::IdsmException idsm_error_domain->idsm_exception definiert Exception idsm_error_domain->idsm_exception 在 ThrowAsException 时抛出 error_code ara::core::ErrorCode error_code->idsm_error_domain referenziert

上下文图:IdsmErrorDomain 在基类、错误码和异常之间的归属关系。来源:[SWS_AIDSM_10706],[SWS_AIDSM_10707],[SWS_AIDSM_10708],[SWS_AIDSM_10712]

生命周期

IdsmErrorDomain 实例的创建受到严格限制。默认构造函数被显式删除(IdsmErrorDomain() = delete;)[SWS_AIDSM_10709]。因此,调用组件和应用程序无法通过常规的对象创建来实例化该类。在实践中,推测该域实例很可能是作为长生命周期的单例通过模块的静态访问函数提供的,这在 AUTOSAR Adaptive Platform 的错误域中是常见的做法。 问题 Q-f791746dd8b5c3d5 (未决)

作为一个纯功能性错误域,该类不包含可变内部状态,也不经历复杂的生命周期阶段或状态转换。在并发性方面,提供的所有方法调用(Name()、Message() 以及 ThrowAsException())均被显式指定为线程安全(thread-safe)[SWS_AIDSM_10710]、[SWS_AIDSM_10711]、[SWS_AIDSM_10712]。因此,该错误域的实例无需额外的外部同步机制即可由系统的多个线程安全地并行使用。

使用路径

在实际应用中,该类用于在软件系统内部转换和传递 IdsM 错误,典型步骤如下:

  • 标识与诊断:通过方法 Name() 可以查询错误域的标识符,以确定当前错误是否来自 IdsM 模块 [SWS_AIDSM_10710]。
  • 文本错误消息:当存在来自 IdsmErrc(别名 Errc)的具体错误码时,调用 Message(errorCode) 会以字符串形式返回对错误原因的易读描述 [SWS_AIDSM_10707]、[SWS_AIDSM_10711]。
  • 抛出异常:若调用层次结构需要异常而非基于值的错误处理,方法 ThrowAsException(errorCode) 会直接将错误码转换为相应的异常 [SWS_AIDSM_10712]。

通过这种使用路径,该域既支持通过 ara::core::ErrorCode 进行基于值的错误检查,也支持在发生错误时采用传统的基于异常的控制流。

错误场景

IdsM 模块内部的错误条件由枚举 IdsmErrc 的值表示,并通过别名 Errc 以类型化方式对其进行访问 [SWS_AIDSM_10707]。错误域控制如何将这些错误码转换为异常情况。

方法 ThrowAsException(const ara::core::ErrorCode& errorCode) 注解为 noexcept(false),并抛出与所传入错误码对应的 Exception [SWS_AIDSM_10712]。该类型为 IdsmException,通过别名 Exception 绑定 [SWS_AIDSM_10708]。解释:在发生错误时,该调用不会正常返回,而是通过抛出异常强制退出当前执行上下文。 问题 Q-52ca402c6c38a110 (未决)相比之下,Name() 和 Message() 通过其 noexcept 声明保证在纯粹查询名称或消息时绝不会意外抛出异常 [SWS_AIDSM_10710]、[SWS_AIDSM_10711]。

本指南基于 R25-11 的 AUTOSAR 规范自动生成。

概要

class IdsmErrorDomain final : public ara::core::ErrorDomain {...};

成员图

构造函数和析构函数

1

类型别名

2

详细视图

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

声明

class IdsmErrorDomain final : public ara::core::ErrorDomain {...};

构造函数和析构函数

IdsmErrorDomain() = delete;

方法

Message 函数
const char* Message(CodeType errorCode) const noexcept override;
Name 函数
const char* Name() const noexcept override;
void ThrowAsException(const ara::core::ErrorCode& errorCode) const noexcept(false) override;

类型别名

Errc 类型别名
using Errc = IdsmErrc;
Exception 类型别名
using Exception = IdsmException;

方法与类型文档

类 IdsmErrorDomain [SWS_AIDSM_10706]

class IdsmErrorDomain final : public ara::core::ErrorDomain {...};
Headerara/idsm/idsm_error_domain.h
Upstream-AnforderungRS_AP_00130, RS_AP_00122, RS_AP_00127

Fehlerdomäne für IdsM.

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10706
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10706@rel:R25-11#e7ddfecf
Content hash
e7ddfecf
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10706
Status: valid/unmigrated Version: rel:R25-11#b8de898a 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_AIDSM_10706@rel:R25-11#b8de898a
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#e77ad6452026-09-30
  • R24-11rel:R24-11#b8de898a2026-10-14
  • R25-11rel:R25-11#b8de898a2026-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

类型别名 Errc [SWS_AIDSM_10707]

using Errc = IdsmErrc;
Headerara/idsm/idsm_error_domain.h
Upstream-AnforderungRS_AP_00120, RS_AP_00130

Alias der IdsM-Fehlercode-Enumeration.

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10707
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10707@rel:R25-11#ce2cbb1b
Content hash
ce2cbb1b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10707
Status: valid/unmigrated Version: rel:R25-11#1bfc66a3 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_AIDSM_10707@rel:R25-11#1bfc66a3
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#5faf38572026-09-30
  • R24-11rel:R24-11#1bfc66a32026-10-14
  • R25-11rel:R25-11#1bfc66a32026-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_AIDSM_10708]

using Exception = IdsmException;
Headerara/idsm/idsm_error_domain.h
Upstream-AnforderungRS_AP_00120, RS_AP_00130

Alias der IdsM-Exception-Klasse.

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10708
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10708@rel:R25-11#430dfda6
Content hash
430dfda6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10708
Status: valid/unmigrated Version: rel:R25-11#2c8d9a7c 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_AIDSM_10708@rel:R25-11#2c8d9a7c
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#4e9da0082026-09-30
  • R24-11rel:R24-11#2c8d9a7c2026-10-14
  • R25-11rel:R25-11#2c8d9a7c2026-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

函数 IdsmErrorDomain [SWS_AIDSM_10709]

IdsmErrorDomain() = delete;
Headerara/idsm/idsm_error_domain.h
Upstream-AnforderungRS_AP_00120, RS_AP_00130

Standardkonstruktor ist gelöscht.

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10709
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10709@rel:R25-11#8911a93e
Content hash
8911a93e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10709
Status: valid/unmigrated Version: rel:R25-11#bcbb2371 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_AIDSM_10709@rel:R25-11#bcbb2371
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#f1189f162026-09-30
  • R24-11rel:R24-11#bcbb23712026-10-14
  • R25-11rel:R25-11#bcbb23712026-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_AIDSM_10711]

const char* Message(CodeType errorCode) const noexcept override;
Headerara/idsm/idsm_error_domain.h
Upstream-AnforderungRS_AP_00120, RS_AP_00121, RS_AP_00130
Thread Safetythread-safe
Rückgabeconst char*

Gibt die Meldung zum Fehlercode zurück.

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10711
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10711@rel:R25-11#ee23d2d8
Content hash
ee23d2d8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10711
Status: valid/unmigrated Version: rel:R25-11#4ce99142 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_AIDSM_10711@rel:R25-11#4ce99142
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#4b3a10222026-09-30
  • R24-11rel:R24-11#4ce991422026-10-14
  • R25-11rel:R25-11#4ce991422026-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_AIDSM_10710]

const char* Name() const noexcept override;
Headerara/idsm/idsm_error_domain.h
Upstream-AnforderungRS_AP_00120, RS_AP_00130
Thread Safetythread-safe
Rückgabeconst char*

Liefert den Namen der Fehlerdomäne.

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10710
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10710@rel:R25-11#f0ea4225
Content hash
f0ea4225
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10710
Status: valid/unmigrated Version: rel:R25-11#afae2a24 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_AIDSM_10710@rel:R25-11#afae2a24
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#816364812026-09-30
  • R24-11rel:R24-11#34622e932026-10-14
  • R25-11rel:R25-11#afae2a242026-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_AIDSM_10712]

void ThrowAsException(const ara::core::ErrorCode& errorCode) const noexcept(false) override;
Headerara/idsm/idsm_error_domain.h
Upstream-AnforderungRS_AP_00120, RS_AP_00121, RS_AP_00130
Thread Safetythread-safe

Wirft die zum Fehlercode gehörige Exception.

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10712
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10712@rel:R25-11#7d966ca6
Content hash
7d966ca6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10712
Status: valid/unmigrated Version: rel:R25-11#0ac9bfb2 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_AIDSM_10712@rel:R25-11#0ac9bfb2
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#786881152026-09-30
  • R24-11rel:R24-11#0ac9bfb22026-10-14
  • R25-11rel:R25-11#0ac9bfb22026-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