DEENESPTFRRUARHIKOZHNL

class ara::com::e2e::ComE2EErrorDomain

[SWS_CM_12503] Upstream: RS_AP_00122, RS_AP_00127, RS_AP_00130

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

Defines a class representing the E2E error domain

Header-Datei#include "ara/com/e2e/e2e_error_domain.h"
Forwarding-Header#include "ara/com/com_fwd.h"
Scopenamespace ara::com::e2e
Basisklasse(n)ara::core::ErrorDomain
Unique IDAs per ara::com::e2e::ComE2EErrorDomain in [SWS_CORE_90023]

User GuideAI-GENERATED

Defines the error domain for verification errors of end-to-end protection in Adaptive communication.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: bfe73c7b7e47 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Defines the error domain for verification errors of end-to-end protection in Adaptive communication.

The class ara::com::e2e::ComE2EErrorDomain defines the error domain for end-to-end protection errors in AUTOSAR Adaptive Communication Management and maps error codes to the enumeration ComE2EErrc ([SWS_CM_12504]). If a server-side E2E check fails, an ara::core::ErrorCode of this domain is transported in the error response and provided on the client side via ara::core::Result ([SWS_CM_00033]). The stateless, exception-safe class permits error handling either value-based or via ThrowAsException(), whereby this exception method is not available when C++ compiler exceptions are disabled ([SWS_CM_12509]).

Context

The class ara::com::e2e::ComE2EErrorDomain defines the error domain for end-to-end protection (E2E) within Communication Management (ara::com) of the AUTOSAR Adaptive Platform. It derives final from the base class ara::core::ErrorDomain and encapsulates domain-specific errors that occur during the E2E validation of messages.

In the communication model, ComE2EErrorDomain acts as a central identifier and translator for error states during E2E-protected interactions. Via the type aliases Errc ([SWS_CM_12504]) and Exception ([SWS_CM_12505]), the error domain binds the type-specific enumeration ComE2EErrc as well as the derived exception type ComE2EException to the error-specific ecosystem of ara::core. If the server runtime environment detects faulty protection when checking a method request using E2E_check ([SWS_CM_90421]), an E2E error response is transmitted. According to [SWS_CM_00033], the payload of this response message transports an ara::core::ErrorCode of domain ara::com::e2e::ComE2EErrorDomain whose error value corresponds to the result of E2E_check (AUTOSAR_AP_SWS_CommunicationManagement §7.4.1.2.4 “Payload of the E2E Error Response”). On the client side, after removal of the E2E header ([SWS_CM_90475]), this error is deserialized ([SWS_CM_90476], [SWS_CM_10473]) and passed to the application as an error state within an ara::core::Result (AUTOSAR_AP_SWS_CommunicationManagement §7.4.1.2.5 “Deserializing the payload”).

ComE2EContext ComE2EErrorDomain ComE2EErrorDomain ErrorDomain ErrorDomain ComE2EErrorDomain->ErrorDomain erbt von ComE2EErrc ComE2EErrc ComE2EErrorDomain->ComE2EErrc Alias Errc ComE2EException ComE2EException ComE2EErrorDomain->ComE2EException Alias Exception ErrorCode ErrorCode ErrorCode->ComE2EErrorDomain referenziert

Context diagram: Embedding of ComE2EErrorDomain into the type system of ara::core and ara::com. Sources: [SWS_CM_12504], [SWS_CM_12505], [SWS_CM_12506], [SWS_CM_00033].

Lifecycle

An instance object is created via the default constructor constexpr ComE2EErrorDomain() noexcept ([SWS_CM_12506]). Due to its designation as constexpr, the error domain can already be constructed at compile time. It is typically expected to be provided as an immutable, process-wide singleton, so that references to the domain remain valid throughout the entire program runtime. Question Q-bd1ba0230650e246 (open) Since the class is declared as final, no further derivations are permitted.

The class manages no mutable state and offers complete exception safety ([SWS_CM_12506]). The inspection methods Name() ([SWS_CM_12507]) and Message() ([SWS_CM_12508]) are declared as const and noexcept. As a result, concurrent read access across multiple threads of execution is guaranteed to be thread-safe and free of synchronization overhead.

Usage Path

The typical usage path takes place in the context of the transmission and client-side evaluation of failed E2E checks:

  1. Check and error generation: Upon receiving an E2E-protected request, the server executes the validation using E2E_check ([SWS_CM_90421]). If this check fails, the middleware serializes an error response whose payload contains an ara::core::ErrorCode with ara::com::e2e::ComE2EErrorDomain ([SWS_CM_00033]).
  2. Transmission and deserialization: On the client side, following protocol handling and removal of the protection header ([SWS_CM_90475]), the payload is deserialized ([SWS_CM_90476]). The communication framework provides the result as ara::core::Result, which encapsulates the transmitted error code ([SWS_CM_10473], AUTOSAR_AP_SWS_CommunicationManagement §7.4.1.2.5 “Deserializing the payload”).
  3. Error diagnostics: The Adaptive Application checks the ara::core::Result. For error logging, Name() returns the identifier of the domain ([SWS_CM_12507]), while Message() returns the human-readable text for the specific numerical code ([SWS_CM_12508]).
  4. Error handling: The application can either evaluate the error in a value-based manner or, if exception handling is enabled, throw a type-specific exception via ThrowAsException() ([SWS_CM_12509]).
Sequence of E2E error handling during a method callClientApplicationara::com MiddlewareServerMethodenaufruf absendenForward request with E2E headerExecute E2E_checkE2E-Fehler erkanntError response with ErrorCode (ComE2EErrorDomain)Remove header and deserialize payloadPass ara::core::Result with ErrorCodealtFehlerauswertung durch ApplikationQuery Message() for error textAusnahmebehandlung aktiviertThrowAsException() wirft ComE2EException

Sequence diagram: Transmission and processing of an E2E error during a method call. Sources: [SWS_CM_00033], [SWS_CM_90421], [SWS_CM_90475], [SWS_CM_90476], [SWS_CM_10473], [SWS_CM_12509].

Error Scenarios

If an E2E error occurs during validation, it is identified via the enumeration ComE2EErrc, which is available via the class's type alias Errc ([SWS_CM_12504]). The error codes in ComE2EErrc are expected to correspond directly to the defined result values of E2E_check. Question Q-07fc2c01567ac537 (open)

To propagate the error via C++ exceptions, the method ThrowAsException() instantiates an exception of type ara::com::e2e::ComE2EException (alias Exception, [SWS_CM_12505]) and throws it ([SWS_CM_12509]). The method is declared as noexcept(false). If C++ exceptions are disabled in the compiler toolchain, ThrowAsException() does not participate in overload resolution according to [SWS_CM_12509]. In systems without exception support, error handling must therefore strictly take place via the value-based inspection of ara::core::Result and ara::core::ErrorCode.

This guide is based on the AUTOSAR Adaptive R25-11 specification and was generated automatically.

Member map

Constructors and destructor

1

Type aliases

2

Class diagram

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__com__e2e__ComE2EErrorDomain501 ComE2EErrorDomain + ComE2EErrorDomain() + Message() + Name() + ThrowAsException() nara__core__ErrorDomain335 ErrorDomain nara__com__e2e__ComE2EErrorDomain501->nara__core__ErrorDomain335

Detail view

Select an entry in the outline.

Constructors and destructor

Constructs a new ara::com::e2e::ComE2EErrorDomain object

constexpr ComE2EErrorDomain () noexcept;

Methods

Message function

Returns the message associated with errorCode

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

Returns a string constant associated with the ara::com::e2e::ComE2EErrorDomain

const char * Name () const noexcept override;

Creates a new instance of ara::com::e2e::ComE2EException from errorCode and throws it. As per [SWS_CORE_10304], this function does not participate in overload resolution when C++ exceptions are disabled in the compiler toolchain.

void ThrowAsException (const ara::core::ErrorCode &errorCode) const noexcept(false) override;

Type aliases

Errc type alias

Alias for the error code value enumeration

using Errc = ComE2EErrc;
Exception type alias

Alias for the exception base class

Method documentation

function ComE2EErrorDomain [SWS_CM_12506] Upstream: RS_AP_00120, RS_AP_00130

constexpr ComE2EErrorDomain () noexcept;

Constructs a new ara::com::e2e::ComE2EErrorDomain object

Header-Datei#include "ara/com/e2e/e2e_error_domain.h"
Scopeclass ara::com::e2e::ComE2EErrorDomain
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CM_12506
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_12506@rel:R25-11#d712101a
Content hash
d712101a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_12506
Status: valid/unmigrated Version: rel:R25-11#a62d5b05 Versionshistorie & Revisions (1 transition, 5 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_CM_12506@rel:R25-11#a62d5b05
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#d712101a2026-09-30
  • R22-11rel:R22-11#2403535e2026-10-14
  • R23-11rel:R23-11#87f9b8242026-10-14
  • R24-11rel:R24-11#e5169c462026-10-14
  • R25-11rel:R25-11#a62d5b052026-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_CM_12508] Upstream: RS_AP_00120, RS_AP_00121, RS_AP_00130

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

Returns the message associated with errorCode

Header-Datei#include "ara/com/e2e/e2e_error_domain.h"
Scopeclass ara::com::e2e::ComE2EErrorDomain
Exception-Sicherheitexception safe

Parameter (in)

ParameterBeschreibung
errorCodeThe error code number.

Rückgabewert

TypBeschreibung
const char *The message associated with the errorCode

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

Record
AUTOSAR/AP/record/SWS_CM_12508
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_12508@rel:R25-11#b2112701
Content hash
b2112701
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_12508
Status: valid/unmigrated Version: rel:R25-11#32e2efef Versionshistorie & Revisions (1 transition, 5 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_CM_12508@rel:R25-11#32e2efef
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#b21127012026-09-30
  • R22-11rel:R22-11#295fdf5d2026-10-14
  • R23-11rel:R23-11#bb3bdd142026-10-14
  • R24-11rel:R24-11#9ddb48eb2026-10-14
  • R25-11rel:R25-11#32e2efef2026-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_CM_12507] Upstream: RS_AP_00120, RS_AP_00130

const char * Name () const noexcept override;

Returns a string constant associated with the ara::com::e2e::ComE2EErrorDomain

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

The member function Name of class ara::com::e2e::ComE2EErrorDomain ([SWS_CM_12507]) is called synchronously and without input parameters. It serves the unique identification of the error domain and returns a pointer to a static string constant (const char *) that represents the name of the E2E communication error domain ([SWS_CM_12507]). The interface declaration is provided via the header file ara/com/e2e/e2e_error_domain.h ([SWS_CM_12507]).

Regarding error handling, the function is specified as noexcept and exception safe ([SWS_CM_12507]). It accordingly throws no exceptions and does not fail at runtime; specific error codes or error handling mechanisms are not intended for this call.

Regarding concurrency and boundary conditions, there are no special call or lifecycle constraints. Since the method merely reads an immutable string, the implementation is likely fully reentrant and safe for concurrent calls from arbitrary threads. Question Q-c8158d40c80ce9c5 (open)

In architectural interaction, the method follows the requirements for standardized, platform-wide unique error domain identifiers (AUTOSAR_AP_SWS_CommunicationManagement §Änderungshistorie “Added unique ErrorDomain identifiers”). An analogous structure is found in related error domains such as ara::com::ComErrorDomain ([SWS_CM_11331]) or apext::com::secoc::ComSecOcFvmErrorDomain ([SWS_CM_12518]).

This usage note was created by an AI and is based on the payload of the AUTOSAR specification R25-11.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/com/e2e/e2e_error_domain.h"
Scopeclass ara::com::e2e::ComE2EErrorDomain
Exception-Sicherheitexception safe

Rückgabewert

TypBeschreibung
const char *As per ara::com::e2e::ComE2EErrorDomain in [SWS_ CORE_90023]

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

Record
AUTOSAR/AP/record/SWS_CM_12507
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_12507@rel:R25-11#82490fb5
Content hash
82490fb5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_12507
Status: valid/unmigrated Version: rel:R25-11#76bee0a8 Versionshistorie & Revisions (1 transition, 5 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_CM_12507@rel:R25-11#76bee0a8
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#82490fb52026-09-30
  • R22-11rel:R22-11#d1c7c1b62026-10-14
  • R23-11rel:R23-11#e2230dff2026-10-14
  • R24-11rel:R24-11#2bcb3cdb2026-10-14
  • R25-11rel:R25-11#76bee0a82026-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_CM_12509] Upstream: RS_AP_00120, RS_AP_00121, RS_AP_00130

void ThrowAsException (const ara::core::ErrorCode &errorCode) const noexcept(false) override;

Creates a new instance of ara::com::e2e::ComE2EException from errorCode and throws it. As per [SWS_CORE_10304], this function does not participate in overload resolution when C++ exceptions are disabled in the compiler toolchain.

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

The member function ThrowAsException of the error domain ara::com::e2e::ComE2EErrorDomain serves, according to [SWS_CM_12509], to encapsulate a passed error code errorCode of type ara::core::ErrorCode into a typed C++ exception of type ara::com::e2e::ComE2EException and throw it synchronously. The function has no return value (void) and is provided via the header ara/com/e2e/e2e_error_domain.h (AUTOSAR_AP_SWS_CommunicationManagement §8.15.3.2.2.3 “ThrowAsException”).

Error Handling and Boundary Conditions

The method is declared with noexcept(false) and explicitly specified as not exception-safe (\"not exception safe\"), since its regular behavior consists in throwing the exception. An essential compiler-side boundary condition is defined by [SWS_CORE_10304]: If C++ exceptions are disabled in the compiler's toolchain, this function does not participate in overload resolution. Callers must therefore ensure that exception-based error handling is supported and active in the target system.

Interaction

Interpretation: As an overridden method (override), the function is likely part of the polymorphic error domain mechanism of AUTOSAR Adaptive to convert generic error codes into specific exception objects. Question Q-f1777f936e0fdac0 (open) Analogous functions are found in the related error domains of communication management: ComErrorDomain::ThrowAsException according to [SWS_CM_11333] throws a ara::com::ComException (AUTOSAR_AP_SWS_CommunicationManagement §8.12.4.2.2.3 “ThrowAsException”), while ComSecOcFvmErrorDomain::ThrowAsException according to [SWS_CM_12520] instantiates and throws a apext::com::secoc::ComSecOcFvmException (AUTOSAR_AP_SWS_CommunicationManagement §C.2.3.2.2.3 “ThrowAsException”).

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

Implementer's Guide to follow (complexity I2)

Header-Datei#include "ara/com/e2e/e2e_error_domain.h"
Scopeclass ara::com::e2e::ComE2EErrorDomain
Exception-Sicherheitnot exception safe

Parameter (in)

ParameterBeschreibung
errorCodeThe error to throw.

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_CM_12509
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_12509@rel:R25-11#9edd6064
Content hash
9edd6064
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_12509
Status: valid/unmigrated Version: rel:R25-11#6800d5fd Versionshistorie & Revisions (1 transition, 5 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_CM_12509@rel:R25-11#6800d5fd
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#9edd60642026-09-30
  • R22-11rel:R22-11#5a8987a42026-10-14
  • R23-11rel:R23-11#dba786162026-10-14
  • R24-11rel:R24-11#c360ebbc2026-10-14
  • R25-11rel:R25-11#6800d5fd2026-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 documentation

type alias Errc [SWS_CM_12504] Upstream: RS_AP_00120, RS_AP_00130

using Errc = ComE2EErrc;

Alias for the error code value enumeration

Header-Datei#include "ara/com/e2e/e2e_error_domain.h"
Scopeclass ara::com::e2e::ComE2EErrorDomain
SymbolErrc

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

Record
AUTOSAR/AP/record/SWS_CM_12504
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_12504@rel:R25-11#0b22d380
Content hash
0b22d380
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_12504
Status: valid/unmigrated Version: rel:R25-11#af4a83f4 Versionshistorie & Revisions (1 transition, 5 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_CM_12504@rel:R25-11#af4a83f4
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#0b22d3802026-09-30
  • R22-11rel:R22-11#02f85fce2026-10-14
  • R23-11rel:R23-11#8d5411e82026-10-14
  • R24-11rel:R24-11#af4a83f42026-10-14
  • R25-11rel:R25-11#af4a83f42026-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_CM_12505] Upstream: RS_AP_00120, RS_AP_00130

using Exception = ComE2EException;

Alias for the exception base class

Header-Datei#include "ara/com/e2e/e2e_error_domain.h"
Scopeclass ara::com::e2e::ComE2EErrorDomain
SymbolException

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

Record
AUTOSAR/AP/record/SWS_CM_12505
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_12505@rel:R25-11#1e7de5be
Content hash
1e7de5be
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_12505
Status: valid/unmigrated Version: rel:R25-11#3abf347f Versionshistorie & Revisions (1 transition, 5 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_CM_12505@rel:R25-11#3abf347f
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#1e7de5be2026-09-30
  • R22-11rel:R22-11#4730f6b22026-10-14
  • R23-11rel:R23-11#fbe99c782026-10-14
  • R24-11rel:R24-11#3abf347f2026-10-14
  • R25-11rel:R25-11#3abf347f2026-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