DEENESPTFRRUARHIKOZHNL

class ara::com::ComErrorDomain

[SWS_CM_11329] Upstream: RS_AP_00130, RS_AP_00122, RS_AP_00127

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

Defines a class representing the Communication error domain.

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

User GuideAI-GENERATED

Encapsulates and identifies general communication errors of the middleware for standardized error handling.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 13073fe45989 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Encapsulates and identifies general communication errors of the middleware for standardized error handling.

The class ara::com::ComErrorDomain represents the communication error domain for identifying general, non-interface-specific errors in the ara::com API ([SWS_CM_11265]). It provides error descriptions for error codes such as ComErrc::kCommunicationFailure and enables querying them via Message() or converting them into an exception using ThrowAsException() ([SWS_CM_11332]). Because its default constructor is deleted, it acts as a stateless, thread-safe domain instance for the error-carrying ara::core::Result.

Context

The class ara::com::ComErrorDomain represents the standardized communication error domain of the Adaptive Platform for the Communication Management functional cluster (SWS CommunicationManagement p. 439). It derives from the base class ara::core::ErrorDomain and defines the semantic context for general errors that may occur during method calls or data transmissions, but are not specific to a single ServiceInterface ([SWS_CM_11265]). In the error architecture of ara::com, it systematically distinguishes general communication disruptions from E2E monitoring errors as well as application-specific service errors (SWS CommunicationManagement §7.5.22.6 “Error Related Data Types”).

Its central interaction partners include the Adaptive Application, the service and proxy implementations of the middleware, and the data types ara::core::ErrorCode and ara::core::Result of the base system (EXP ARAComAPI §4.7 “Error Handling”). For semantic type binding, the class provides the type aliases Errc for the error code enumeration ComErrc ([SWS_CM_11336]) and Exception for the associated exception class ComException ([SWS_CM_11337]).

ComErrorDomainContext app Adaptive Application runtime ara::com Middleware app->runtime calls service domain ara::com::ComErrorDomain app->domain fragt Name / Message ab runtime->app returns Result errorcode ara::core::ErrorCode / Result runtime->errorcode erzeugt base ara::core::ErrorDomain domain->base erbt von errorcode->domain referenziert

Context diagram: Classification of ComErrorDomain into the error architecture of ara::com. Sources: [SWS_CM_11265], EXP ARAComAPI §4.7 “Error Handling”, SWS CommunicationManagement §7.5.22.6 “Error Related Data Types”

Lifecycle

As a specification class for an error domain, creation of ara::com::ComErrorDomain is prevented by the deletion of the default constructor ComErrorDomain() = delete; ([SWS_CM_11330]). Interpretation: Provision of the domain instance is presumably carried out as a static singleton via the platform, so that application components do not need to dynamically instantiate or manage the domain. Question Q-bf957a108c0a5378 (open)

The instance acts as a stateless descriptor without mutable attributes. All provided methods, such as Name() ([SWS_CM_11331]) and Message() ([SWS_CM_11332]), are declared as const noexcept. This guarantees full thread safety for concurrent error queries by parallel application and middleware threads.

Usage Path

The typical usage path comprises the detection, transmission, and evaluation of an error via the interfaces of ara::com:

  1. The application initiates a service interaction, for example via the call operator of the method class operator() ([SWS_CM_00196]).
  2. If the middleware detects an error during processing, such as a communication failure or an unconfigured application error ([SWS_CM_00048]), the operation SetError is called on the corresponding Promise (SWS CommunicationManagement p. 300).
  3. In doing so, an ara::core::ErrorCode is constructed whose domain is set to ara::com::ComErrorDomain ([SWS_CM_11329]) and whose numerical code is set to a specific enum value such as ComErrc::kCommunicationFailure ([SWS_CM_10432]).
  4. The ara::core::Future or ara::core::Result returned to the application transports the error code in the error state to the caller (EXP ARAComAPI §4.7 “Error Handling”).
  5. The application checks the Result and uses the domain functions Name() ([SWS_CM_11331]) and Message() ([SWS_CM_11332]) to resolve error messages for logging or diagnostics.
  6. If the application logic expects an exception and C++ exceptions are enabled, conversion into an ComException can be triggered using ThrowAsException() ([SWS_CM_11333]).
Error signaling and querying via ComErrorDomainApplicationService Methodara::com RuntimeComErrorDomainoperator()()Execute service callKommunikationsfehler erkanntSetError(ErrorCode)Result with ErrorCodeMessage(errorCode)const char* Fehlermeldung

Sequence diagram: Signaling and querying a communication error via ComErrorDomain. Sources: [SWS_CM_00196], [SWS_CM_10432], [SWS_CM_11329], [SWS_CM_11332], SWS CommunicationManagement p. 300

Error Scenarios

The error concept of ara::com strictly distinguishes between recoverable errors and severe programming violations (violations or corruptions) (EXP ARAComAPI §4.7 “Error Handling”). Recoverable errors are handled via ara::core::Result and ara::core::ErrorCode, with error codes of domain ComErrorDomain being addressed via the identifier alias Errc ([SWS_CM_11336]).

If, for example, a transmission interruption occurs during a remote call, the system reports ComErrc::kCommunicationFailure ([SWS_CM_10432]). In the event of an unconfigured application error, the middleware aborts the call and likewise sets a corresponding error code of the domain ([SWS_CM_00048], SWS CommunicationManagement p. 300).

If an error code is to be thrown as an exception, ThrowAsException() instantiates an exception of type ComException ([SWS_CM_11337]) and throws it ([SWS_CM_11333]). This method is not exception-safe (not exception safe) and, according to the specification, does not participate in overload resolution when C++ exceptions are disabled ([SWS_CM_11333]). Non-recoverable system violations, on the other hand, lead directly to a platform abort and are not handled via ComErrorDomain (EXP ARAComAPI §4.7 “Error Handling”).

This guide was generated by an AI based on the AUTOSAR specifications R25-11.

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__ComErrorDomain658 ComErrorDomain + ComErrorDomain() + Message() + Name() + ThrowAsException() nara__core__ErrorDomain335 ErrorDomain nara__com__ComErrorDomain658->nara__core__ErrorDomain335

Detail view

Select an entry in the outline.

Constructors and destructor

Constructs a new ara::com::ComErrorDomain object

ComErrorDomain ()=delete;

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::ComErrorDomain

const char * Name () const noexcept override;

Creates a new instance of ara::com::ComException 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 = ComErrc;
Exception type alias

Alias for the exception base class

Method documentation

function ComErrorDomain [SWS_CM_11330] Upstream: RS_AP_00120, RS_AP_00130

ComErrorDomain ()=delete;

Constructs a new ara::com::ComErrorDomain object

Header-Datei#include "ara/com/com_error_domain.h"
Scopeclass ara::com::ComErrorDomain

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

Record
AUTOSAR/AP/record/SWS_CM_11330
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11330@rel:R25-11#ac718eaf
Content hash
ac718eaf
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11330
Status: valid/unmigrated Version: rel:R25-11#311df5be 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_CM_11330@rel:R25-11#311df5be
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#ac718eaf2026-09-30
  • R20-11rel:R20-11#29b64c1a2026-10-14
  • R21-11rel:R21-11#29b64c1a2026-10-14
  • R22-11rel:R22-11#9ed8561d2026-10-14
  • R23-11rel:R23-11#87bee04d2026-10-14
  • R24-11rel:R24-11#311df5be2026-10-14
  • R25-11rel:R25-11#311df5be2026-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_11332] 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/com_error_domain.h"
Scopeclass ara::com::ComErrorDomain
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_11332
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11332@rel:R25-11#6543769f
Content hash
6543769f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11332
Status: valid/unmigrated Version: rel:R25-11#7bdb7850 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_CM_11332@rel:R25-11#7bdb7850
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#6543769f2026-09-30
  • R20-11rel:R20-11#b09f8a972026-10-14
  • R21-11rel:R21-11#b09f8a972026-10-14
  • R22-11rel:R22-11#38e51ca02026-10-14
  • R23-11rel:R23-11#684722932026-10-14
  • R24-11rel:R24-11#9ea8ac0d2026-10-14
  • R25-11rel:R25-11#7bdb78502026-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_11331] Upstream: RS_AP_00120, RS_AP_00130

const char * Name () const noexcept override;

Returns a string constant associated with the ara::com::ComErrorDomain

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

use

The member function Name() of class ara::com::ComErrorDomain serves for the standardized retrieval of the textual designation of this error domain ([SWS_CM_11331]). The call is synchronous, requires no input parameters, and returns a constant pointer of type const char * to the associated string ([SWS_CM_11331]). The exact representation of the returned string conforms to the requirements for ara::com::ComErrorDomain in [SWS_CORE_90023]. The declaration must be included via the header ara/com/com_error_domain.h ([SWS_CM_11331]).

Error Handling and Concurrency

The method is provided with the specification noexcept and classified as exception safe (exception safe) ([SWS_CM_11331]). In case of an error, neither exceptions are thrown nor specific error codes are reported, as it is a pure read operation. Since only an immutable string constant is addressed, the method is likely reentrant and safely supports concurrent calls from multiple threads without external synchronization. Question Q-a9f6ae55558ebb1f (open)

Interaction

The function is part of the standardized error domain identifiers within communication management (AUTOSAR_AP_SWS_CommunicationManagement §1 “Change History”). The naming and interface scheme is implemented consistently across related domains: Thus, the end-to-end error domain ara::com::e2e::ComE2EErrorDomain via [SWS_CM_12507] as well as the SecOC FVM error domain apext::com::secoc::ComSecOcFvmErrorDomain via [SWS_CM_12518] also define similar Name() methods for identification.

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

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/com/com_error_domain.h"
Scopeclass ara::com::ComErrorDomain
Exception-Sicherheitexception safe

Rückgabewert

TypBeschreibung
const char *As per ara::com::ComErrorDomain in [SWS_CORE_90023]

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

Record
AUTOSAR/AP/record/SWS_CM_11331
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11331@rel:R25-11#63ce8874
Content hash
63ce8874
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11331
Status: valid/unmigrated Version: rel:R25-11#f830d6b9 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_CM_11331@rel:R25-11#f830d6b9
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#63ce88742026-09-30
  • R20-11rel:R20-11#a9004e6e2026-10-14
  • R21-11rel:R21-11#a9004e6e2026-10-14
  • R22-11rel:R22-11#b910a94e2026-10-14
  • R23-11rel:R23-11#71a3f6172026-10-14
  • R24-11rel:R24-11#c88a65792026-10-14
  • R25-11rel:R25-11#f830d6b92026-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_11333] 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::ComException 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: bc30613084e7 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function ThrowAsException of the error domain ara::com::ComErrorDomain ([SWS_CM_11333]; SWS CommunicationManagement §8.12.4.2.2.3 “ThrowAsException”) synchronously creates an instance of the exception ara::com::ComException from a passed error code errorCode (of type const ara::core::ErrorCode&) and throws it immediately. The interface has no return value (void) and is declared via the header file ara/com/com_error_domain.h.

Error Handling and Exception Safety

The signature is declared with noexcept(false) and specified as not exception-safe (not exception safe) ([SWS_CM_11333]), since throwing the exception is the primary purpose of the function. Specific DET or DEM reports are not defined for this call.

Boundary conditions and constraints

The central boundary condition is: If C++ exceptions are disabled in the compiler toolchain, the function does not participate in overload resolution according to [SWS_CORE_10304] ([SWS_CM_11333]). Interpretation: In software architectures with disabled exception handling, the function is therefore likely not callable at compile time. Question Q-437f825160e6801e (open)

Interaction

The function corresponds to eponymous methods of related error domains of communication management, such as ara::com::e2e::ComE2EErrorDomain::ThrowAsException ([SWS_CM_12509]; SWS CommunicationManagement §8.15.3.2.2.3 “ThrowAsException”) for ara::com::e2e::ComE2EException as well as apext::com::secoc::ComSecOcFvmErrorDomain::ThrowAsException ([SWS_CM_12520]; SWS CommunicationManagement §C.2.3.2.2.3 “ThrowAsException”) for apext::com::secoc::ComSecOcFvmException.

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

Implementer's Guide to follow (complexity I2)

Header-Datei#include "ara/com/com_error_domain.h"
Scopeclass ara::com::ComErrorDomain
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_11333
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11333@rel:R25-11#08f757e5
Content hash
08f757e5
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11333
Status: valid/unmigrated Version: rel:R25-11#ca2e1034 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_CM_11333@rel:R25-11#ca2e1034
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#08f757e52026-09-30
  • R20-11rel:R20-11#cfb82fec2026-10-14
  • R21-11rel:R21-11#cfb82fec2026-10-14
  • R22-11rel:R22-11#c01d94f82026-10-14
  • R23-11rel:R23-11#b004bb3f2026-10-14
  • R24-11rel:R24-11#08bab0d22026-10-14
  • R25-11rel:R25-11#ca2e10342026-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_11336] Upstream: RS_AP_00120, RS_AP_00130

using Errc = ComErrc;

Alias for the error code value enumeration

Header-Datei#include "ara/com/com_error_domain.h"
Scopeclass ara::com::ComErrorDomain
SymbolErrc

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

Record
AUTOSAR/AP/record/SWS_CM_11336
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11336@rel:R25-11#1d242af8
Content hash
1d242af8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11336
Status: valid/unmigrated Version: rel:R25-11#9dcc2b3c 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_CM_11336@rel:R25-11#9dcc2b3c
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#1d242af82026-09-30
  • R20-11rel:R20-11#bdbb3b7b2026-10-14
  • R21-11rel:R21-11#d5b1fd782026-10-14
  • R22-11rel:R22-11#cfcb0f762026-10-14
  • R23-11rel:R23-11#6911ba582026-10-14
  • R24-11rel:R24-11#9dcc2b3c2026-10-14
  • R25-11rel:R25-11#9dcc2b3c2026-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_11337] Upstream: RS_AP_00120, RS_AP_00130

using Exception = ComException;

Alias for the exception base class

Header-Datei#include "ara/com/com_error_domain.h"
Scopeclass ara::com::ComErrorDomain
SymbolException

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

Record
AUTOSAR/AP/record/SWS_CM_11337
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_11337@rel:R25-11#aed5e41a
Content hash
aed5e41a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11337
Status: valid/unmigrated Version: rel:R25-11#261070dd 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_CM_11337@rel:R25-11#261070dd
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#aed5e41a2026-09-30
  • R20-11rel:R20-11#3791dd7e2026-10-14
  • R21-11rel:R21-11#3791dd7e2026-10-14
  • R22-11rel:R22-11#be13c66e2026-10-14
  • R23-11rel:R23-11#e6fe4ac62026-10-14
  • R24-11rel:R24-11#261070dd2026-10-14
  • R25-11rel:R25-11#261070dd2026-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