DEENESPTFRRUARHIKOZHNL

class apext::com::secoc::ComSecOcFvmErrorDomain

[SWS_CM_12514] Upstream: RS_AP_00122, RS_AP_00127, RS_AP_00130

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

Defines a class representing the SecOc Freshness Value Manager error domain

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

User GuideAI-GENERATED

Defines the SecOC FVM error domain and maps specific error codes to message texts and exceptions.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 815063923fbe Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Defines the SecOC FVM error domain and maps specific error codes to message texts and exceptions.

The class apext::com::secoc::ComSecOcFvmErrorDomain encapsulates the error domain for the Freshness Value Manager in the SecOC communication module of AUTOSAR Adaptive [SWS_CM_12514]. It maps error codes from ComSecOcFvmErrc to descriptive texts and enables their conversion into ComSecOcFvmException exceptions. Access is typically performed process-wide via the helper function GetComSecOcFvmErrorDomain() [SWS_CM_12521]. If compiler exceptions are disabled, the method for exception generation is automatically removed from overload resolution.

Context

The class apext::com::secoc::ComSecOcFvmErrorDomain defines the error domain for the Freshness Value Manager (FVM) in the context of secure onboard communication (SecOC) for Adaptive AUTOSAR Communication Management [SWS_CM_12514] (AUTOSAR_AP_SWS_CommunicationManagement §C.2.3 “Class: ComSecOcFvmErrorDomain”). As a final subclass of ara::core::ErrorDomain, it integrates domain-specific FVM error states into the platform-wide error handling model of AUTOSAR Adaptive.

To encapsulate error identifiers and exception types, the class provides two central type aliases: via Errc, the error code enum ComSecOcFvmErrc is referenced [SWS_CM_12515] (AUTOSAR_AP_SWS_CommunicationManagement §C.2.3.1 “Public Member Types”), while the type alias Exception specifies the specialized exception class ComSecOcFvmException [SWS_CM_12516] (AUTOSAR_AP_SWS_CommunicationManagement §C.2.3.1 “Public Member Types”). Standardized access to the instance of this error domain is performed process-wide via the free function apext::com::secoc::GetComSecOcFvmErrorDomain() [SWS_CM_12521] (AUTOSAR_AP_SWS_CommunicationManagement §C.2.2.1.1 “GetComSecOcFvmErrorDomain”).

Lifecycle

Creation of an instance of ComSecOcFvmErrorDomain is performed via the parameterless default constructor [SWS_CM_12517]. Due to the declaration as constexpr and noexcept, it is guaranteed that instantiation can already take place at compile time without allocation risk and is completely exception-safe.

During operation, the error domain typically acts as a long-lived, immutable singleton in the process (interpretation). Question Q-fc901552d01e33de (open) Application and middleware components usually do not instantiate the domain locally, but use the const reference provided via GetComSecOcFvmErrorDomain() [SWS_CM_12521]. Because the member functions Name() [SWS_CM_12518] and Message() [SWS_CM_12519] are stateless and defined as const noexcept, concurrent read access from multiple threads is safe without additional synchronization mechanisms.

Usage Path

If an error occurs in the Freshness Value Manager, callers interact with the error domain along a fixed sequence:

  • Retrieve reference: The component retrieves the global domain reference using GetComSecOcFvmErrorDomain() [SWS_CM_12521].
  • Domain identification: The fixed identifier assigned to the error domain can be queried via Name() for logging or diagnostic purposes [SWS_CM_12518].
  • Resolve error message: Based on a passed error code (CodeType), Message() returns a pointer to the static, human-readable description of the error [SWS_CM_12519].
  • Throw exception: If the error path is to be handled exception-based, ThrowAsException() transforms an ara::core::ErrorCode object into the corresponding exception [SWS_CM_12520].
Typical usage of ComSecOcFvmErrorDomainCallerGetComSecOcFvmErrorDomain()ComSecOcFvmErrorDomainComSecOcFvmExceptionGetComSecOcFvmErrorDomain()const ComSecOcFvmErrorDomain&altFehlermeldung abfragenMessage(errorCode)const char* (Meldungstext)Throw exceptionThrowAsException(errorCode)creates and throwsthrow ComSecOcFvmException

Sequence diagram: Typical query of error texts or raising of an exception via ComSecOcFvmErrorDomain. Sources: [SWS_CM_12519], [SWS_CM_12520], [SWS_CM_12521]

Error Scenarios

The functions Name() [SWS_CM_12518] and Message() [SWS_CM_12519] have exception safety noexcept and never throw under any circumstances. For unknown numeric error codes, Message() presumably returns a generic default string (interpretation). Question Q-4f9834f33957160b (open)

In contrast, the method ThrowAsException() is by definition not exception-safe (not exception safe), since its explicit task is to construct and throw an ComSecOcFvmException object based on the passed ara::core::ErrorCode [SWS_CM_12520]. Toolchain configuration is an important precondition: If C++ exceptions are disabled in the compiler, ThrowAsException() does not participate in overload resolution [SWS_CM_12520]. Callers in exception-free runtime environments must therefore implement error handling via ara::core::Result or direct error code evaluations.

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

Member map

Constructors and destructor

1

Type aliases

2

Class diagram

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

G napext__com__secoc__ComSecOcFvmErrorDomain756 ComSecOcFvmErrorDomain + ComSecOcFvmErrorDomain() + Message() + Name() + ThrowAsException() nara__core__ErrorDomain335 ErrorDomain napext__com__secoc__ComSecOcFvmErrorDomain756->nara__core__ErrorDomain335

Detail view

Select an entry in the outline.

Constructors and destructor

Constructs a new apext::com::secoc::ComSecOcFvmErrorDomain object

constexpr ComSecOcFvmErrorDomain () 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 apext::com::secoc:: ComSecOcFvmErrorDomain

const char * Name () const noexcept override;

Creates a new instance of apext::com::secoc::ComSecOcFvmException 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 = ComSecOcFvmErrc;
Exception type alias

Alias for the exception base class

Method documentation

function ComSecOcFvmErrorDomain [SWS_CM_12517] Upstream: RS_AP_00120, RS_AP_00127, RS_AP_00130

constexpr ComSecOcFvmErrorDomain () noexcept;
Header-Datei#include "apext/com/secoc/fvm_error_domain.h"
Scopeclass apext::com::secoc::ComSecOcFvmErrorDomain
Exception-Sicherheitexception safe

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

Record
AUTOSAR/AP/record/SWS_CM_12517
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_12517@rel:R25-11#31f28493
Content hash
31f28493
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_12517
Status: valid/unmigrated Version: rel:R25-11#7ddf8164 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_12517@rel:R25-11#7ddf8164
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#31f284932026-09-30
  • R22-11rel:R22-11#fe7147412026-10-14
  • R23-11rel:R23-11#ef5a3f0e2026-10-14
  • R24-11rel:R24-11#00eff3c62026-10-14
  • R25-11rel:R25-11#7ddf81642026-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_12519] 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 "apext/com/secoc/fvm_error_domain.h"
Scopeclass apext::com::secoc::ComSecOcFvmErrorDomain
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_12519
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_12519@rel:R25-11#6d8f1f59
Content hash
6d8f1f59
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_12519
Status: valid/unmigrated Version: rel:R25-11#9147a34b 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_12519@rel:R25-11#9147a34b
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#6d8f1f592026-09-30
  • R22-11rel:R22-11#633314ad2026-10-14
  • R23-11rel:R23-11#a966445d2026-10-14
  • R24-11rel:R24-11#0dd035792026-10-14
  • R25-11rel:R25-11#9147a34b2026-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_12518] Upstream: RS_AP_00120, RS_AP_00127, RS_AP_00130

const char * Name () const noexcept override;

Returns a string constant associated with the apext::com::secoc:: ComSecOcFvmErrorDomain

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

The member function Name() of the error domain class apext::com::secoc::ComSecOcFvmErrorDomain returns a string constant representing the identifier of this error domain [SWS_CM_12518]. The declaration is provided via the header file #include "apext/com/secoc/fvm_error_domain.h" [SWS_CM_12518]. The function operates purely synchronously, takes no parameters, and returns a pointer to an immutable string of type const char * [SWS_CM_12518].

Regarding error handling, the interface is specified as exception safe and provided with the C++ identifier noexcept [SWS_CM_12518]. A call can thus not fail and throws no C++ exceptions. Specific error codes, feedback descriptions, or reports to DET or DEM do not exist for this query function.

Since it is a reading const method that returns a constant pointer to a static string, the execution is likely reentrant and thread-safe. Question Q-75fa65f59869d0ab (open) There are no restrictive ordering conditions for the calling context.

The method fits into the extensions of Communication Management for SecOC and Freshness Value Management AUTOSAR_AP_SWS_CommunicationManagement §1 “Release Changes” p. 3. It follows the same architectural pattern as eponymous functions of other error domains of the module, namely in ara::com::ComErrorDomain [SWS_CM_11331] and in ara::com::e2e::ComE2EErrorDomain [SWS_CM_12507].

This usage note was generated automatically based on the AUTOSAR R25-11 specification.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "apext/com/secoc/fvm_error_domain.h"
Scopeclass apext::com::secoc::ComSecOcFvmErrorDomain
Exception-Sicherheitexception safe

Rückgabewert

TypBeschreibung
const char *As per apext::com::secoc::ComSecOcFvmErrorDomain in [SWS_CORE_90023]

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

Record
AUTOSAR/AP/record/SWS_CM_12518
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_12518@rel:R25-11#9760d354
Content hash
9760d354
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_12518
Status: valid/unmigrated Version: rel:R25-11#5ac902af 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_12518@rel:R25-11#5ac902af
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#9760d3542026-09-30
  • R22-11rel:R22-11#a377b2122026-10-14
  • R23-11rel:R23-11#97ff04352026-10-14
  • R24-11rel:R24-11#5e9d07722026-10-14
  • R25-11rel:R25-11#5ac902af2026-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_12520] 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 apext::com::secoc::ComSecOcFvmException 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: ce36f40333e6 Provenance
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function ThrowAsException of the error domain apext::com::secoc::ComSecOcFvmErrorDomain (SWS Communication Management §C.2.3.2.2.3 “ThrowAsException”, [SWS_CM_12520]) serves to convert an error code into a C++ exception. It takes a reference to an error code errorCode of type const ara::core::ErrorCode& as an input parameter and has no return value. The function creates a new instance of apext::com::secoc::ComSecOcFvmException based on the passed error code and throws it synchronously ([SWS_CM_12520]).

Error Handling and Exception Safety

The method is declared with noexcept(false) and classified as not exception safe (not exception safe) according to the specification ([SWS_CM_12520]). The regular execution pattern provides that the function does not return normally, but immediately reports the created exception apext::com::secoc::ComSecOcFvmException to the caller in case of an error.

restrictions

An essential restriction regarding the compiler configuration applies to the function: If C++ exceptions are disabled in the compiler toolchain, ThrowAsException does not participate in overload resolution according to [SWS_CORE_10304] ([SWS_CM_12520]).

Interaction

The behavior corresponds to the uniform error model of Communication Management. Comparable functions exist for the general communication domain ara::com::ComErrorDomain::ThrowAsException (SWS Communication Management §8.12.4.2.2.3 “ThrowAsException”, [SWS_CM_11333]), which throws a ara::com::ComException, as well as for the end-to-end error domain ara::com::e2e::ComE2EErrorDomain::ThrowAsException (SWS Communication Management §8.15.3.2.2.3 “ThrowAsException”, [SWS_CM_12509]), which instantiates a ara::com::e2e::ComE2EException.

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

Implementer's Guide to follow (complexity I2)

Header-Datei#include "apext/com/secoc/fvm_error_domain.h"
Scopeclass apext::com::secoc::ComSecOcFvmErrorDomain
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_12520
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_12520@rel:R25-11#0f6c419d
Content hash
0f6c419d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_12520
Status: valid/unmigrated Version: rel:R25-11#437e51da 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_12520@rel:R25-11#437e51da
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#0f6c419d2026-09-30
  • R22-11rel:R22-11#4114c69d2026-10-14
  • R23-11rel:R23-11#5a85b1842026-10-14
  • R24-11rel:R24-11#5616eddf2026-10-14
  • R25-11rel:R25-11#437e51da2026-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_12515] Upstream: RS_AP_00120, RS_AP_00127, RS_AP_00130

using Errc = ComSecOcFvmErrc;

Alias for the error code value enumeration

Header-Datei#include "apext/com/secoc/fvm_error_domain.h"
Scopeclass apext::com::secoc::ComSecOcFvmErrorDomain
SymbolErrc

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

Record
AUTOSAR/AP/record/SWS_CM_12515
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_12515@rel:R25-11#5e50cf26
Content hash
5e50cf26
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_12515
Status: valid/unmigrated Version: rel:R25-11#9e1c96ab 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_12515@rel:R25-11#9e1c96ab
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#5e50cf262026-09-30
  • R22-11rel:R22-11#51831d2d2026-10-14
  • R23-11rel:R23-11#e6ef23242026-10-14
  • R24-11rel:R24-11#9e1c96ab2026-10-14
  • R25-11rel:R25-11#9e1c96ab2026-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_12516] Upstream: RS_AP_00120, RS_AP_00127, RS_AP_00130

using Exception = ComSecOcFvmException;

Alias for the exception base class

Header-Datei#include "apext/com/secoc/fvm_error_domain.h"
Scopeclass apext::com::secoc::ComSecOcFvmErrorDomain
SymbolException

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

Record
AUTOSAR/AP/record/SWS_CM_12516
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CM_12516@rel:R25-11#81fce66a
Content hash
81fce66a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_12516
Status: valid/unmigrated Version: rel:R25-11#801578c5 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_12516@rel:R25-11#801578c5
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#81fce66a2026-09-30
  • R22-11rel:R22-11#3c90a4eb2026-10-14
  • R23-11rel:R23-11#3d2e52462026-10-14
  • R24-11rel:R24-11#fda471ba2026-10-14
  • R25-11rel:R25-11#801578c52026-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