函数 DiagErrorDomain [SWS_DM_00520] Upstream: RS_AP_00119
constexpr DiagErrorDomain () noexcept;
Default constructor.
默认构造函数 DiagErrorDomain() 初始化诊断错误域 ara::diag::DiagErrorDomain 的实例([SWS_DM_00520]、AUTOSAR_AP_SWS_Diagnostics §8.11.3.2.1.1 “Default Constructor”)。它被声明为 constexpr 和 noexcept,不接受任何参数,也不返回任何值([SWS_DM_00520])。调用以同步方式进行,既可以在编译时执行,也可以在运行时执行。
关于执行安全性和并发性,适用以下属性:
- 错误和异常安全性:该函数被指定为
exception safe,并且由于noexcept而不能引发异常([SWS_DM_00520])。未针对构造定义特定的错误代码或向 DET 或 DEM 发送的消息。 - 线程安全性:该实例化被归类为
thread-safe([SWS_DM_00520]),并且在调用上下文方面不受任何限制。
在与模块 Diagnostics 的协作中,类 DiagErrorDomain([SWS_DM_00517]、AUTOSAR_AP_SWS_Diagnostics §8.11.3 “Class: DiagErrorDomain”)表示诊断错误域。它提供了诸如 Errc([SWS_DM_00518])和 Exception([SWS_DM_00519])等核心类型别名。该域的实例还提供了用于名称查询的方法([SWS_DM_00521])、通过 Message() 将错误代码转换为消息文本的方法([SWS_DM_00522])以及通过 ThrowAsException() 引发特定于域的异常的方法([SWS_DM_00523])。
在实际应用中,通过此构造函数直接进行手动实例化可能很少需要(解释),因为通过函数 ara::diag::GetDiagDomain()([SWS_DM_00524])已经提供了一个全局实例引用,该引用尤其被 ara::diag::MakeErrorCode()([SWS_DM_00525])用于生成错误代码。 问题 Q-95d533b0920260e0 (未决)
本使用说明由 AI 基于规范生成。
实现者指南即将推出(复杂度 I2)
| Header-Datei | #include "ara/diag/diag_error_domain.h" |
|---|---|
| Scope | class ara::diag::DiagErrorDomain |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_DM_00520- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_DM_00520@rel:R25-11#c9685084- Content hash
c9685084- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00520
Status: valid/unmigrated
Version: rel:R25-11#23b2a5be
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_DM_00520@rel:R25-11#23b2a5be
Recorded Revisions (7):
- R25-11
rel:R25-11#e6d6d9562026-09-30 - R20-11
rel:R20-11#9b545c562026-10-14 - R21-11
rel:R21-11#dc7608ee2026-10-14 - R22-11
rel:R22-11#ad446d6c2026-10-14 - R23-11
rel:R23-11#19214db12026-10-14 - R24-11
rel:R24-11#3d3406ec2026-10-14 - R25-11
rel:R25-11#23b2a5be2026-10-14 active
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically 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 · 德文原文