DEENESPTFRRUARHIKOZHNL

class ara::nm::NmErrorDomain

Diese Seite wurde vollständig KI-generiert auf Basis von SWS NetworkManagement (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/nm/nm_error_domain.h · Spezifikationselemente: 7

User GuideAI-GENERATED

Defines the error domain for Network Management and translates error codes into messages or exceptions.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 03bbc3f0d631 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Defines the error domain for Network Management and translates error codes into messages or exceptions.

The error domain ara::nm::NmErrorDomain encapsulates error handling of Network Management in the AUTOSAR Adaptive Platform and incorporates error codes NmErrc as well as exception class NmException [SWS_ANM_01101]. Its primary tasks include providing readable error messages via Message() as well as controlled throwing of associated exceptions via ThrowAsException() [SWS_ANM_01108]. As a central constraint, instantiation and all member functions are implemented thread-safe (thread-safe), ensuring concurrent error querying throughout the overall system.

Context

The class ara::nm::NmErrorDomain functions within the AUTOSAR Adaptive Platform as a domain-specific error domain for the Network Management subsystem [SWS_ANM_01101]. As a final specialization of base class ara::core::ErrorDomain, it provides the standardized framework for identifying, textually describing, and forwarding errors that may occur during the operation of Network Management functions [SWS_ANM_01101].

Within the NM error handling concept, the class links concrete error causes with the general error handling mechanisms of the runtime environment. Here, the class defines a direct mapping to the relevant types via type aliases: Via alias Errc, it incorporates the underlying enumeration NmErrc, which declares the specific error codes for Network Management [SWS_ANM_01103]. At the same time, it references the specialized exception class NmException via alias Exception, allowing errors to be transferred into the C++ exception mechanism if required [SWS_ANM_01104]. Through this aggregation, NmErrorDomain serves as the central link between the error states of the module and the error-specific base system of ara::core.

Lifecycle

Creation of an instance of ara::nm::NmErrorDomain takes place via the parameterless default constructor [SWS_ANM_01105]. Since the class is specified as final, further sub-structuring or specialization by derived error domains is explicitly prevented [SWS_ANM_01101]. The constructor is declared with noexcept, guaranteeing that instantiation of the error domain is performed without throwing exceptions [SWS_ANM_01105].

Regarding ownership, an instance of this error domain typically exists as a long-lived global object in memory to be permanently available via references in error code objects. Question Q-27fedf008cefcdc7 (open) An essential feature in the lifecycle is concurrency behavior: Both the construction of instance [SWS_ANM_01105] and all interface functions such as name querying [SWS_ANM_01106], message generation [SWS_ANM_01107], and throwing of exceptions [SWS_ANM_01108] are designed to be fully thread-safe (thread-safe). Since instances of NmErrorDomain possess no mutable state, they can be used concurrently from multiple threads without additional synchronization measures.

Usage Path

The regular usage path begins as soon as an error state in Network Management needs to be analyzed, logged, or converted into an exception. The error domain provides the fundamental identification and evaluation functions for this purpose.

For general identification of the domain, the Name() method can be called, which returns the name of the domain as a constant string pointer [SWS_ANM_01106]. When an application or a basic system needs to determine the textual meaning of an encountered error code, the Message() method is called, passing the error code [SWS_ANM_01107]. This method returns the associated error message as const char* and guarantees through its noexcept declaration that the diagnostic process itself remains exception-safe [SWS_ANM_01107].

If the control flow requires throwing a system-specific exception, the ThrowAsException() method is used [SWS_ANM_01108]. This function accepts an error object of type ara::core::ErrorCode and throws the matching exception of type NmException [SWS_ANM_01104], [SWS_ANM_01108]. In practice, the call is likely to occur primarily indirectly via corresponding helper methods of error objects. Question Q-70e50ac95d89f400 (open)

Error handling and exception throwingApplicationara::core::ErrorCodeara::nm::NmErrorDomainThrowAsException()ThrowAsException(errorCode)Generates exception of type NmExceptionthrow NmException

Sequence diagram: Transformation of a network management error code into a type-specific NmException via the error domain. Sources: [SWS_ANM_01104], [SWS_ANM_01108].

Error Scenarios

In the context of error handling, the domain covers all error cases of the module defined by the enumeration type NmErrc via the alias Errc [SWS_ANM_01103]. The domain itself is designed to safeguard the evaluation of errors deterministically.

When obtaining text messages via Message(), the declaration as noexcept ensures that no unexpected exceptions are thrown even in the case of invalid error codes [SWS_ANM_01107]. The only intended scenario in which the class actively triggers an exception is the explicit call to ThrowAsException() [SWS_ANM_01108]. Via the noexcept(false) declaration, the method signals that it inevitably transfers the program to an exception-handling path by throwing an instance of NmException [SWS_ANM_01104], [SWS_ANM_01108]. Calling components must therefore ensure that such calls are caught by appropriate exception blocks when necessary.

This guide is based on the AUTOSAR Adaptive R25-11 specification and was generated by an AI assistant.

Synopsis

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

Member map

Constructors and destructor

1

Type aliases

2

Detail view

Select an entry in the outline.

Declaration

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

Constructors and destructor

NmErrorDomain function
NmErrorDomain() noexcept;

Methods

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

Type aliases

Errc type alias
using Errc = NmErrc;
Exception type alias
using Exception = NmException;

Documentation of methods and types

class NmErrorDomain [SWS_ANM_01101]

class NmErrorDomain final : public ara::core::ErrorDomain {...};
Headerara/nm/nm_error_domain.h
Upstream-AnforderungRS_AP_00122, RS_AP_00127, RS_AP_00140

Fehlerdomäne für Network Management.

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

Record
AUTOSAR/AP/record/SWS_ANM_01101
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_ANM_01101@rel:R25-11#2f218d8b
Content hash
2f218d8b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_NetworkManagement.pdf#nameddest=SWS_ANM_01101
Status: valid/unmigrated Version: rel:R25-11#c6340f25 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_ANM_01101@rel:R25-11#c6340f25
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#2f218d8b2026-09-30
  • R23-11rel:R23-11#6438791e2026-10-14
  • R24-11rel:R24-11#c6340f252026-10-14
  • R25-11rel:R25-11#c6340f252026-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

type alias Errc [SWS_ANM_01103]

using Errc = NmErrc;
Headerara/nm/nm_error_domain.h
Upstream-AnforderungRS_AP_00122

Alias der Fehlercode-Enumeration.

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

Record
AUTOSAR/AP/record/SWS_ANM_01103
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_ANM_01103@rel:R25-11#763615e7
Content hash
763615e7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_NetworkManagement.pdf#nameddest=SWS_ANM_01103
Status: valid/unmigrated Version: rel:R25-11#5e897335 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_ANM_01103@rel:R25-11#5e897335
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#763615e72026-09-30
  • R23-11rel:R23-11#82cd4f752026-10-14
  • R24-11rel:R24-11#5e8973352026-10-14
  • R25-11rel:R25-11#5e8973352026-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

type alias Exception [SWS_ANM_01104]

using Exception = NmException;
Headerara/nm/nm_error_domain.h
Upstream-AnforderungRS_AP_00122

Alias der zugehörigen Exception-Klasse.

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

Record
AUTOSAR/AP/record/SWS_ANM_01104
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_ANM_01104@rel:R25-11#9733e1e5
Content hash
9733e1e5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_NetworkManagement.pdf#nameddest=SWS_ANM_01104
Status: valid/unmigrated Version: rel:R25-11#7127c58a 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_ANM_01104@rel:R25-11#7127c58a
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#9733e1e52026-09-30
  • R23-11rel:R23-11#28316ba52026-10-14
  • R24-11rel:R24-11#7127c58a2026-10-14
  • R25-11rel:R25-11#7127c58a2026-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

function NmErrorDomain [SWS_ANM_01105]

NmErrorDomain() noexcept;
Headerara/nm/nm_error_domain.h
Upstream-AnforderungRS_AP_00119, RS_AP_00120, RS_AP_00159
Thread Safetythread-safe

Konstruiert die Network-Management-Fehlerdomäne.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: b1e5629ee03d Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The default constructor NmErrorDomain() serves to construct the error domain for Network Management ([SWS_ANM_01105]). The function is declared in header ara/nm/nm_error_domain.h and creates an instance of class NmErrorDomain, which inherits from ara::core::ErrorDomain ([SWS_ANM_01101]).

Usage and Concurrency

The constructor takes no parameters and has no return value ([SWS_ANM_01105]). Instantiation is performed synchronously. According to the specification, the call is classified as thread-safe, so that the error domain can also be safely created from parallel threads ([SWS_ANM_01105]).

Error handling

The function is specified with the identifier noexcept ([SWS_ANM_01105]). Consequently, no exceptions occur during execution. Specific error codes or error handling mechanisms are not provided for this construction.

Interaction

The created class NmErrorDomain defines the domain-specific context for errors of Network Management ([SWS_ANM_01101]). The function GetNmDomain(), which returns a global reference of type const ara::core::ErrorDomain& ([SWS_ANM_01109]), primarily serves to provide the domain throughout the overall system. Direct instantiation via constructor NmErrorDomain() is likely rarely required in typical application scenarios, as application and platform components usually retrieve the singleton reference exposed via GetNmDomain(). Question Q-fb6ed826a4fadb8d (open)

This text was generated by an AI based on the AUTOSAR R25-11 specification.

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

Record
AUTOSAR/AP/record/SWS_ANM_01105
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_ANM_01105@rel:R25-11#2c8490c6
Content hash
2c8490c6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_NetworkManagement.pdf#nameddest=SWS_ANM_01105
Status: valid/unmigrated Version: rel:R25-11#7c97dfbf 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_ANM_01105@rel:R25-11#7c97dfbf
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#2c8490c62026-09-30
  • R23-11rel:R23-11#201cb5722026-10-14
  • R24-11rel:R24-11#7c97dfbf2026-10-14
  • R25-11rel:R25-11#7c97dfbf2026-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

function Message [SWS_ANM_01107]

const char* Message(CodeType errorCode) const noexcept override;
Headerara/nm/nm_error_domain.h
Upstream-AnforderungRS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00159
Thread Safetythread-safe
Rückgabeconst char*

Gibt die Meldung zum Fehlercode zurück.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 6df30899a389 Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The function Message [SWS_ANM_01107] returns a descriptive text message for a given error code. It is declared in header ara/nm/nm_error_domain.h and serves as an overridden method for querying error descriptions within the error domain of module anm.

Usage and signature

The call is executed synchronously via the signature const char* Message(CodeType errorCode) const noexcept override; according to [SWS_ANM_01107]. The error code errorCode of type CodeType to be queried is passed as a parameter. The return value is a pointer of type const char* pointing to the corresponding message for the error code.

Concurrency and Exception Handling

  • Thread Safety: The function is explicitly specified as thread-safe [SWS_ANM_01107] and can thus be called safely and concurrently from multiple threads.
  • Exception Safety: Due to the specification as noexcept, the function does not throw any exceptions [SWS_ANM_01107].

This text was generated by an AI based on AUTOSAR specifications.

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

Record
AUTOSAR/AP/record/SWS_ANM_01107
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_ANM_01107@rel:R25-11#b0023dd4
Content hash
b0023dd4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_NetworkManagement.pdf#nameddest=SWS_ANM_01107
Status: valid/unmigrated Version: rel:R25-11#b376025d 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_ANM_01107@rel:R25-11#b376025d
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#b0023dd42026-09-30
  • R23-11rel:R23-11#53c9addb2026-10-14
  • R24-11rel:R24-11#b376025d2026-10-14
  • R25-11rel:R25-11#b376025d2026-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

function Name [SWS_ANM_01106]

const char* Name() const noexcept override;
Headerara/nm/nm_error_domain.h
Upstream-AnforderungRS_AP_00119, RS_AP_00120, RS_AP_00159
Thread Safetythread-safe
Rückgabeconst char*

Liefert den Namen der Fehlerdomäne.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 3276749be506 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function Name is provided via the header ara/nm/nm_error_domain.h and serves to query the identifier of the network management error domain [SWS_ANM_01106]. The call is synchronous and takes no input parameters [SWS_ANM_01106]. As a return value, the function returns a pointer of type const char* that points to the name of the error domain [SWS_ANM_01106].

Error Handling and Concurrency

Due to the specification with noexcept, the method is guaranteed not to throw any exceptions [SWS_ANM_01106]. Specific error codes do not exist for this call, as querying a static domain name is always successful. Regarding concurrency, the method is explicitly specified as thread-safe, meaning that parallel calls from different threads are permitted without external synchronization [SWS_ANM_01106].

Interaction

The signature with the identifier override allows the interpretation that the method overrides the base interface of a parent error domain in order to provide the domain-specific name [SWS_ANM_01106]. Callers can use the returned name to unambiguously map errors of module anm.

This text was generated by an AI and serves as guidance. The AUTOSAR specification alone is authoritative.

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

Record
AUTOSAR/AP/record/SWS_ANM_01106
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_ANM_01106@rel:R25-11#c959b523
Content hash
c959b523
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_NetworkManagement.pdf#nameddest=SWS_ANM_01106
Status: valid/unmigrated Version: rel:R25-11#28ea5958 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_ANM_01106@rel:R25-11#28ea5958
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#c959b5232026-09-30
  • R23-11rel:R23-11#f3bad7692026-10-14
  • R24-11rel:R24-11#1848dcc02026-10-14
  • R25-11rel:R25-11#28ea59582026-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

function ThrowAsException [SWS_ANM_01108]

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

Wirft die dem Fehlercode zugeordnete Exception.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 3aa6c9429dcb Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Usage and Call Context

The member function ThrowAsException serves to synchronously throw the C++ exception associated with a passed error code [SWS_ANM_01108]. A const reference to an ara::core::ErrorCode object is passed as a parameter [SWS_ANM_01108]. The function has no return value (void), as the regular control flow is aborted after the call by throwing the exception [SWS_ANM_01108].

The specifiers const and noexcept(false) specify that the method does not modify the state of the object and that leaving the function body via an exception is explicitly intended [SWS_ANM_01108].

Concurrency and Integration

Regarding concurrency, the function is classified as thread-safe [SWS_ANM_01108]. It can therefore be called in parallel from multiple threads without additional synchronization measures. The function is provided via the header ara/nm/nm_error_domain.h and is declared as override [SWS_ANM_01108]. Interpretation: Due to its placement in the Adaptive Network Management module (anm), it is likely to override the abstract interface of a general error domain in order to convert module-specific error codes into concrete exception types. Question Q-f963889439cce7bb (open)

This usage note was automatically generated based on the AUTOSAR specification data.

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

Record
AUTOSAR/AP/record/SWS_ANM_01108
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_ANM_01108@rel:R25-11#1a8ee6d2
Content hash
1a8ee6d2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_NetworkManagement.pdf#nameddest=SWS_ANM_01108
Status: valid/unmigrated Version: rel:R25-11#8abec386 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_ANM_01108@rel:R25-11#8abec386
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#1a8ee6d22026-09-30
  • R23-11rel:R23-11#464560ae2026-10-14
  • R24-11rel:R24-11#8abec3862026-10-14
  • R25-11rel:R25-11#8abec3862026-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