function DiagErrorDomain [SWS_DM_00520] Upstream: RS_AP_00119
constexpr DiagErrorDomain () noexcept;
Default constructor.
The default constructor DiagErrorDomain() initializes an instance of the diagnostic error domain ara::diag::DiagErrorDomain ([SWS_DM_00520], AUTOSAR_AP_SWS_Diagnostics §8.11.3.2.1.1 “Default Constructor”). It is declared as constexpr and noexcept, takes no parameters, and returns no value ([SWS_DM_00520]). The call is synchronous and can be executed at compile time as well as at runtime.
Regarding execution safety and concurrency, the following properties apply:
- Error and exception safety: The function is specified as
exception safeand cannot throw exceptions due tonoexcept([SWS_DM_00520]). Specific error codes or notifications to DET or DEM are not defined for construction. - Thread safety: Instantiation is classified as
thread-safe([SWS_DM_00520]) and is subject to no restrictions regarding the call context.
In interaction with the Diagnostics module, class DiagErrorDomain ([SWS_DM_00517], AUTOSAR_AP_SWS_Diagnostics §8.11.3 “Class: DiagErrorDomain”) represents the domain of diagnostic errors. It provides central type aliases such as Errc ([SWS_DM_00518]) and Exception ([SWS_DM_00519]). Instances of the domain also provide methods for querying the name ([SWS_DM_00521]), for translating error codes into message texts via Message() ([SWS_DM_00522]), and for throwing domain-specific exceptions via ThrowAsException() ([SWS_DM_00523]).
In practical application, direct manual instantiation via this constructor is likely rarely necessary (interpretation), since a global instance reference is already available with function ara::diag::GetDiagDomain() ([SWS_DM_00524]), which is used, among other things, by ara::diag::MakeErrorCode() ([SWS_DM_00525]) to create error codes. Question Q-95d533b0920260e0 (open)
This usage note was generated by an AI based on the specification.
Implementer's Guide to follow (complexity 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#e6d6d956- Content hash
e6d6d956- 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 · German original