DEENESPTFRRUARHIKOZHNL

class ara::core::ErrorDomain

[SWS_CORE_00110] Upstream: RS_AP_00130

class ErrorDomain {...};

Encapsulation of an ErrorDomain. An ErrorDomain is the controlling entity for ErrorCode’s error code values, and defines the mapping of such error code values to textual representations. This type constitutes a base class for ErrorDomain implementations. This class is a literal type, and subclasses are strongly advised to be literal types as well.

Header-Datei#include "ara/core/error_domain.h"
Forwarding-Header#include "ara/core/core_fwd.h"
Scopenamespace ara::core

User GuideAI-GENERATED

Serves as a base class for controlling error codes and maps domain-specific error values to text messages.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: d0712f7c0a23 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Serves as a base class for controlling error codes and maps domain-specific error values to text messages.

The class ara::core::ErrorDomain serves as an abstract base class for controlling error values and maps domain-specific codes to their textual representations [SWS_CORE_00153]. Subclasses encapsulate a system-wide unique identification number and define the translation into immutable error texts as well as type-specific exception handling. To enable usage as a literal type at compile time, the base class has a non-virtual, protected destructor [SWS_CORE_00136]. Copy and move operations are completely prohibited so that instances act as immutable identities.

Context

The class ara::core::ErrorDomain forms the common foundation for structured error management in the AUTOSAR Adaptive Platform. It acts as an abstract base class for concrete error domains and assumes central control responsibility for error values encapsulated in ara::core::ErrorCode. Each domain spans its own namespace and defines the mapping of domain-specific error values of type CodeType ([SWS_CORE_00122]) to meaningful text representations via Message() ([SWS_CORE_00153]). Furthermore, the class provides the type alias IdType ([SWS_CORE_00121]) for system-wide unique domain identifiers as well as SupportDataType ([SWS_CORE_00123]) for vendor-specific supplementary data.

In the overall system, ara::core::ErrorDomain interacts with three main partners:

  • Subclasses: Specific error domains inherit from ara::core::ErrorDomain and implement the pure virtual member functions for domain names, error messages, and exception handling.
  • ara::core::ErrorCode: Represents a concrete error value and delegates the retrieval of the descriptive text to the associated error domain.
  • Client / application code: Queries status information via the error code or directly on the domain ([SWS_CORE_00152]) or receives thrown C++ exceptions ([SWS_CORE_00154]).
diag_kontext Client Client ErrorCode ErrorCode Client->ErrorCode evaluates ErrorDomain ErrorDomain ErrorCode->ErrorDomain zugeordnet zu ErrorDomain->Client provides Name / Message / Exception Subklasse Subklasse Subklasse->ErrorDomain leitet ab von

Context diagram: Relationships and collaboration of ara::core::ErrorDomain with subclasses, error codes, and application code. Sources: [SWS_CORE_00151], [SWS_CORE_00152], [SWS_CORE_00153], [SWS_CORE_00154].

Lifecycle

Instantiation of ara::core::ErrorDomain is protected: The constructor has protected visibility and expects a system-wide unique domain identifier of type IdType ([SWS_CORE_00135]). Because the constructor is declared as constexpr and noexcept, the base class supports creation as a literal type at compile time. Subclasses are explicitly recommended to ensure this literal type property as well.

Any duplication or transfer of domain instances is prohibited:

The destructor is declared as protected and defined as a default implementation ([SWS_CORE_00136]). It is deliberately kept trivial and non-virtual so that the class can remain a literal type. Although ara::core::ErrorDomain provides pure virtual interfaces, polymorphic destruction via base class pointers is not required ([SWS_CORE_00136]). In practice, concrete domain instances are likely managed as long-lived or static objects (interpretation). Question Q-a874dd64f6320d21 (open)

Regarding ownership, all pointers to names ([SWS_CORE_00152]) and error texts ([SWS_CORE_00153]) remain in the ownership of the domain class and must not be deallocated by clients. All read and comparison operations are thread-safe and exception-safe ([SWS_CORE_00135], [SWS_CORE_00151]).

Usage Path

Two instances of ara::core::ErrorDomain compare equal if and only if their domain identifiers obtained via Id() ([SWS_CORE_00151]) match ([SWS_CORE_00137], [SWS_CORE_00138]). The typical sequence during error resolution and exception handling is divided into the following steps:

  1. Domain identification: The client or the error object determines the domain name as a null-terminated string via Name() ([SWS_CORE_00152]).
  2. Message resolution: The numeric error value is passed to the domain via Message(errorCode) ([SWS_CORE_00153]). The domain returns a pointer-based, null-terminated error text that is never nullptr.
  3. Exception handling: If an error code is to be transformed into an exception, the client calls ThrowAsException(errorCode) ([SWS_CORE_00154]). The domain then throws an appropriate instance of ara::core::Exception that encapsulates the passed error code.
Error resolution and exception triggeringClientErrorCodeErrorDomainFehler abfragenMessage(errorCode)const char* (Fehlertext)Text bereitstellenoptC++ Exceptions aktiviertThrowAsException(errorCode)wirft Exception

Sequence diagram: Typical sequence during text resolution and exception throwing via an ErrorDomain. Sources: [SWS_CORE_00152], [SWS_CORE_00153], [SWS_CORE_00154].

Error Scenarios

When working with ara::core::ErrorDomain, the following error scenarios and interface requirements must be taken into account:

  • Incorrect domain association: If an errorCode that does not originate from this specific ErrorDomain is passed to the method Message(), this constitutes the specified violation WrongDomainOfAn-ErrorCodeViolation ([SWS_CORE_00153]). Callers must ensure that the error code matches the domain instance.
  • Disabled C++ exceptions: The method ThrowAsException() is not exception-safe (not exception safe) and throws an exception ([SWS_CORE_00154]). If C++ exceptions are disabled in the compiler toolchain, this function must not participate in overload resolution ([SWS_CORE_00154]).
  • Null pointer exclusion: Neither Name() nor Message() must ever return nullptr ([SWS_CORE_00152], [SWS_CORE_00153]). A subclass implementation returning nullptr violates the interface specification.

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

Member map

Class diagram

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

G nara__core__ErrorDomain335 ErrorDomain + ErrorDomain() + operator=() + Id() + Message() + Name() + ThrowAsException() + operator!=() + operator==() + ~ErrorDomain() napext__com__secoc__ComSecOcFvmErrorDomain756 ComSecOcFvmErrorDomain napext__com__secoc__ComSecOcFvmErrorDomain756->nara__core__ErrorDomain335 napext__tsync__TsyncFvmErrorDomain111 TsyncFvmErrorDomain napext__tsync__TsyncFvmErrorDomain111->nara__core__ErrorDomain335 nara__com__ComErrorDomain658 ComErrorDomain nara__com__ComErrorDomain658->nara__core__ErrorDomain335 nara__com__e2e__ComE2EErrorDomain501 ComE2EErrorDomain nara__com__e2e__ComE2EErrorDomain501->nara__core__ErrorDomain335 nara__core__CoreErrorDomain113 CoreErrorDomain nara__core__CoreErrorDomain113->nara__core__ErrorDomain335 nara__core__FutureErrorDomain146 FutureErrorDomain nara__core__FutureErrorDomain146->nara__core__ErrorDomain335 nara__crypto__CryptoErrorDomain690 CryptoErrorDomain nara__crypto__CryptoErrorDomain690->nara__core__ErrorDomain335 nara__diag__DiagErrorDomain167 DiagErrorDomain nara__diag__DiagErrorDomain167->nara__core__ErrorDomain335 nara__diag__DiagOfferErrorDomain584 DiagOfferErrorDomain nara__diag__DiagOfferErrorDomain584->nara__core__ErrorDomain335 nara__diag__DiagReportingErrorDomain575 DiagReportingErrorDomain nara__diag__DiagReportingErrorDomain575->nara__core__ErrorDomain335 nara__diag__DiagSovdErrorDomain991 DiagSovdErrorDomain nara__diag__DiagSovdErrorDomain991->nara__core__ErrorDomain335 nara__diag__DiagUdsNrcErrorDomain838 DiagUdsNrcErrorDomain nara__diag__DiagUdsNrcErrorDomain838->nara__core__ErrorDomain335 nara__exec__ExecErrorDomain631 ExecErrorDomain nara__exec__ExecErrorDomain631->nara__core__ErrorDomain335 nara__per__PerErrorDomain979 PerErrorDomain nara__per__PerErrorDomain979->nara__core__ErrorDomain335 nara__phm__PhmErrorDomain808 PhmErrorDomain nara__phm__PhmErrorDomain808->nara__core__ErrorDomain335 nara__sm__SmErrorDomain386 SmErrorDomain nara__sm__SmErrorDomain386->nara__core__ErrorDomain335 nara__tsync__TsyncErrorDomain367 TsyncErrorDomain nara__tsync__TsyncErrorDomain367->nara__core__ErrorDomain335

Detail view

Select an entry in the outline.

Constructors and destructor

ErrorDomain function 3

Copy construction shall be disabled

Overloads ErrorDomain 3
ErrorDomain (const ErrorDomain &)=delete; SWS_CORE_00131
ErrorDomain (ErrorDomain &&)=delete; SWS_CORE_00132
explicit constexpr ErrorDomain (IdType id) noexcept; SWS_CORE_00135
~ErrorDomain function

Destructor

~ErrorDomain () noexcept=default;

Methods

Id function

Return the unique domain identifier

constexpr IdType Id () const noexcept;
Message function

Return a textual representation of the given errorCode.

virtual const char * Message (CodeType errorCode) const noexcept=0;
Name function

Return the name of this ErrorDomain

virtual const char * Name () const noexcept=0;

Throw the given errorCode as an ara::core::Exception.

virtual void ThrowAsException (const ErrorCode &errorCode) const noexcept(false)=0;

Operators

operator!= function

Compare for non-equality with another ara::core::ErrorDomain instance

constexpr bool operator!= (const ErrorDomain &other) const noexcept;
operator= function 2

Copy assignment shall be disabled

Overloads = 2
ErrorDomain & operator= (const ErrorDomain &)=delete; SWS_CORE_00133
ErrorDomain & operator= (ErrorDomain &&)=delete; SWS_CORE_00134
operator== function

Compare for equality with another ara::core::ErrorDomain instance. Two ara::core::ErrorDomain instances compare equal when their identifiers (returned by Id()) are equal

constexpr bool operator== (const ErrorDomain &other) const noexcept;

Type aliases

CodeType type alias

Alias type for a domain-specific error code value

using CodeType = std::int32_t;
IdType type alias

Alias type for a unique ErrorDomain identifier type

using IdType = std::uint64_t;
SupportDataType type alias

Alias type for vendor-specific supplementary data

using SupportDataType = {<support-data-type>};

Method documentation

function ErrorDomain [SWS_CORE_00131] Upstream: RS_AP_00130

ErrorDomain (const ErrorDomain &)=delete;

Copy construction shall be disabled

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain

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

Record
AUTOSAR/AP/record/SWS_CORE_00131
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00131@rel:R25-11#a5369985
Content hash
a5369985
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00131
Status: valid/unmigrated Version: rel:R25-11#47cc58ff Versionshistorie & Revisions (1 transition, 8 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_CORE_00131@rel:R25-11#47cc58ff
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#a53699852026-09-30
  • R19-11rel:R19-11#8a5b83352026-10-14
  • R20-11rel:R20-11#253664202026-10-14
  • R21-11rel:R21-11#253664202026-10-14
  • R22-11rel:R22-11#12c0c3a52026-10-14
  • R23-11rel:R23-11#9f8935932026-10-14
  • R24-11rel:R24-11#d154072d2026-10-14
  • R25-11rel:R25-11#47cc58ff2026-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 ErrorDomain [SWS_CORE_00132] Upstream: RS_AP_00130

ErrorDomain (ErrorDomain &&)=delete;

Move construction shall be disabled

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain

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

Record
AUTOSAR/AP/record/SWS_CORE_00132
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00132@rel:R25-11#c062c577
Content hash
c062c577
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00132
Status: valid/unmigrated Version: rel:R25-11#50c27182 Versionshistorie & Revisions (1 transition, 8 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_CORE_00132@rel:R25-11#50c27182
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#c062c5772026-09-30
  • R19-11rel:R19-11#aaaf0c582026-10-14
  • R20-11rel:R20-11#9db2d92d2026-10-14
  • R21-11rel:R21-11#9db2d92d2026-10-14
  • R22-11rel:R22-11#f11f44702026-10-14
  • R23-11rel:R23-11#a0c0a1ad2026-10-14
  • R24-11rel:R24-11#4d9ecc622026-10-14
  • R25-11rel:R25-11#50c271822026-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 ErrorDomain [SWS_CORE_00135] Upstream: RS_AP_00130

explicit constexpr ErrorDomain (IdType id) noexcept;

Construct a new instance with the given id. Identifiers are expected to be system-wide unique.

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Sichtbarkeitprotected

Parameter (in)

ParameterBeschreibung
idthe unique identifier

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

Record
AUTOSAR/AP/record/SWS_CORE_00135
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00135@rel:R25-11#cd0ce233
Content hash
cd0ce233
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00135
Status: valid/unmigrated Version: rel:R25-11#7727fc1e Versionshistorie & Revisions (1 transition, 8 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_CORE_00135@rel:R25-11#7727fc1e
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#cd0ce2332026-09-30
  • R19-11rel:R19-11#101178ec2026-10-14
  • R20-11rel:R20-11#af1004ad2026-10-14
  • R21-11rel:R21-11#4d1113e52026-10-14
  • R22-11rel:R22-11#c4c8d9b02026-10-14
  • R23-11rel:R23-11#ada36ef72026-10-14
  • R24-11rel:R24-11#3395c67f2026-10-14
  • R25-11rel:R25-11#7727fc1e2026-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 Id [SWS_CORE_00151] Upstream: RS_AP_00130

constexpr IdType Id () const noexcept;

Return the unique domain identifier

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

The member function Id() of class ara::core::ErrorDomain from the header file ara/core/error_domain.h synchronously returns the unique identifier of the respective error domain ([SWS_CORE_00151]). The call expects no input parameters and returns the domain identifier as a value of type IdType, thereby ensuring unique distinction of different error domains throughout the overall system.

For error handling, it is relevant that the function is declared as noexcept and classified as exception safe ([SWS_CORE_00151]). It therefore never throws exceptions and reports neither error codes nor special cases. Due to the property as a constexpr method, the identifier can already be evaluated at compile time if needed and used in constant expressions.

With respect to concurrency and call conditions, Id() is specified as thread-safe ([SWS_CORE_00151]). The call is stateless and free of modifying side effects, allowing any number of threads to access the same instance simultaneously and without external locking mechanisms.

In interaction within the domain architecture, the identifier forms the primary comparison criterion: According to the specification, two instances of ara::core::ErrorDomain are considered equal if and only if their identifiers returned by Id() match, which is implemented directly by the equality operator operator== ([SWS_CORE_00137]).

This usage note was created by an AI and is based on AUTOSAR Adaptive R25-11.

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
IdTypethe identifier

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

Record
AUTOSAR/AP/record/SWS_CORE_00151
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00151@rel:R25-11#a56b1e7b
Content hash
a56b1e7b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00151
Status: valid/unmigrated Version: rel:R25-11#7915d90d Versionshistorie & Revisions (1 transition, 8 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_CORE_00151@rel:R25-11#7915d90d
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#a56b1e7b2026-09-30
  • R19-11rel:R19-11#854ced192026-10-14
  • R20-11rel:R20-11#543969362026-10-14
  • R21-11rel:R21-11#278e5e4b2026-10-14
  • R22-11rel:R22-11#18da8afd2026-10-14
  • R23-11rel:R23-11#2ad535bf2026-10-14
  • R24-11rel:R24-11#7a5f2e402026-10-14
  • R25-11rel:R25-11#7915d90d2026-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_CORE_00153] Upstream: RS_AP_00130

virtual const char * Message (CodeType errorCode) const noexcept=0;

Return a textual representation of the given errorCode.

The returned pointer remains owned by the ara::core::ErrorDomain sub-class and shall not be freed by clients.

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

The pure virtual function Message of base class ara::core::ErrorDomain from header ara/core/error_domain.h serves to synchronously retrieve a textual representation for a passed domain-specific error code errorCode [SWS_CORE_00153]. It returns a pointer to a null-terminated string (const char *) that is guaranteed never to be nullptr. The referenced memory remains owned by the respective subclass of ara::core::ErrorDomain and must under no circumstances be freed by calling clients [SWS_CORE_00153].

Regarding concurrency and robustness, the method is declared as noexcept, considered exception safe (exception safe), and designed to be unconditionally thread-safe (thread-safe) [SWS_CORE_00153]. Regarding potential error conditions, it is specified that a errorCode not originating from the respective instance of ara::core::ErrorDomain results in a violation of type WrongDomainOfAnErrorCodeViolation [SWS_CORE_00153].

In interaction with the AUTOSAR error handling model, concrete error domains such as ara::core::FutureErrorDomain [SWS_CORE_00443] and ara::core::CoreErrorDomain [SWS_CORE_05243] override this method to transform domain-specific error codes into concrete message texts. Interpretation: The interaction with ara::core::ErrorCode::Message() [SWS_CORE_00518], which returns a textual representation as StringView, is presumably based on ErrorCode forwarding the translation to method Message of the associated error domain. Question Q-f9007fdf5234b6a4 (open)

This usage note was generated automatically based on the specification requirements.

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)WrongDomainOfAn- If the errorCode did not originate from this ara::core:: ErrorCodeViolation ErrorDomain

Parameter (in)

ParameterBeschreibung
errorCodethe domain-specific error code

Rückgabewert

TypBeschreibung
const char *the text as a null-terminated string, never nullptr

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

Record
AUTOSAR/AP/record/SWS_CORE_00153
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00153@rel:R25-11#31774724
Content hash
31774724
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00153
Status: valid/unmigrated Version: rel:R25-11#4d024521 Versionshistorie & Revisions (1 transition, 8 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_CORE_00153@rel:R25-11#4d024521
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#317747242026-09-30
  • R19-11rel:R19-11#53fe833d2026-10-14
  • R20-11rel:R20-11#deab0cbe2026-10-14
  • R21-11rel:R21-11#deab0cbe2026-10-14
  • R22-11rel:R22-11#90438fcf2026-10-14
  • R23-11rel:R23-11#724c70902026-10-14
  • R24-11rel:R24-11#af836d942026-10-14
  • R25-11rel:R25-11#4d0245212026-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_CORE_00152] Upstream: RS_AP_00130

virtual const char * Name () const noexcept=0;

Return the name of this ErrorDomain

The returned pointer remains owned by class ara::core::ErrorDomain and shall not be freed by clients.

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
const char *the name as a null-terminated string, never nullptr

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

Record
AUTOSAR/AP/record/SWS_CORE_00152
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00152@rel:R25-11#fbeb1006
Content hash
fbeb1006
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00152
Status: valid/unmigrated Version: rel:R25-11#fc1560e6 Versionshistorie & Revisions (1 transition, 8 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_CORE_00152@rel:R25-11#fc1560e6
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#fbeb10062026-09-30
  • R19-11rel:R19-11#1091ac792026-10-14
  • R20-11rel:R20-11#5d2fb6242026-10-14
  • R21-11rel:R21-11#4d515fa72026-10-14
  • R22-11rel:R22-11#0f7fba942026-10-14
  • R23-11rel:R23-11#17438fd22026-10-14
  • R24-11rel:R24-11#089188232026-10-14
  • R25-11rel:R25-11#fc1560e62026-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_CORE_00154] Upstream: RS_AP_00130

virtual void ThrowAsException (const ErrorCode &errorCode) const noexcept(false)=0;

Throw the given errorCode as an ara::core::Exception.

This function will determine the appropriate exception type for the given ErrorCode according to [SWS_CORE_10953] and throw it. The thrown exception will contain the given ErrorCode.

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

The pure virtual method ThrowAsException of class ara::core::ErrorDomain serves to synchronously throw a passed error code as an exception of type ara::core::Exception [SWS_CORE_00154]. The function takes a reference to const ErrorCode &errorCode as an input parameter and has no return value, as execution is terminated by throwing the exception [SWS_CORE_00154].

With regard to error and exception behavior, the respective domain determines the exception type matching the passed error code in accordance with [SWS_CORE_10953] and throws it [SWS_CORE_00154]. The thrown exception contains the passed ErrorCode [SWS_CORE_00154]. The function is classified as not exception safe (not exception safe) [SWS_CORE_00154].

The following requirements apply to concurrency and the compiler context:

  • Thread safety: Calling ThrowAsException is specified as thread-safe (thread-safe) [SWS_CORE_00154].
  • Restriction when C++ exceptions are disabled: If C++ exceptions are disabled in the compiler toolchain, the function shall not participate in overload resolution according to [SWS_CORE_10304] [SWS_CORE_00154].

In interaction with other components, the function forms the basis for throwing exceptions via error objects: thus, ara::core::ErrorCode::ThrowAsException delegates throwing to the associated domain via this->Domain().ThrowAsException(*this) [SWS_CORE_00519]. Concrete implementations override this interface to throw specific exceptions such as CoreException in CoreErrorDomain [SWS_CORE_05244] or FutureException in FutureErrorDomain [SWS_CORE_00444].

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

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain
Exception-Sicherheitnot exception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
errorCodethe errorCode

Rückgabewert

TypBeschreibung
None

Exceptions

Any exception of the type as defined in [SWS_CORE_10953] containing the given ErrorCode

Hinweise: This function shall not participate in overload resolution when C++ exceptions are disabled in the compiler toolchain. As per [SWS_CORE_10304].

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

Record
AUTOSAR/AP/record/SWS_CORE_00154
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00154@rel:R25-11#04a7381e
Content hash
04a7381e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00154
Status: valid/unmigrated Version: rel:R25-11#2ab310df Versionshistorie & Revisions (1 transition, 8 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_CORE_00154@rel:R25-11#2ab310df
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#04a7381e2026-09-30
  • R19-11rel:R19-11#d1678c642026-10-14
  • R20-11rel:R20-11#0a1202b52026-10-14
  • R21-11rel:R21-11#8bd539962026-10-14
  • R22-11rel:R22-11#2da1f5282026-10-14
  • R23-11rel:R23-11#b794869c2026-10-14
  • R24-11rel:R24-11#e8939dbd2026-10-14
  • R25-11rel:R25-11#2ab310df2026-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 operator!= [SWS_CORE_00138] Upstream: RS_AP_00130

constexpr bool operator!= (const ErrorDomain &other) const noexcept;

Compare for non-equality with another ara::core::ErrorDomain instance

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
otherthe other instance

Rückgabewert

TypBeschreibung
bool• TRUE: if other is equal to *this • FALSE: if other is NOT equal to *this

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

Record
AUTOSAR/AP/record/SWS_CORE_00138
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00138@rel:R25-11#52d84340
Content hash
52d84340
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00138
Status: valid/unmigrated Version: rel:R25-11#fc670ab6 Versionshistorie & Revisions (1 transition, 8 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_CORE_00138@rel:R25-11#fc670ab6
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#52d843402026-09-30
  • R19-11rel:R19-11#cc8291d02026-10-14
  • R20-11rel:R20-11#b8b660df2026-10-14
  • R21-11rel:R21-11#b8b660df2026-10-14
  • R22-11rel:R22-11#ef503a462026-10-14
  • R23-11rel:R23-11#4677b4a92026-10-14
  • R24-11rel:R24-11#4ca5ab382026-10-14
  • R25-11rel:R25-11#fc670ab62026-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 operator= [SWS_CORE_00133] Upstream: RS_AP_00130

ErrorDomain & operator= (const ErrorDomain &)=delete;

Copy assignment shall be disabled

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain

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

Record
AUTOSAR/AP/record/SWS_CORE_00133
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00133@rel:R25-11#46ce0506
Content hash
46ce0506
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00133
Status: valid/unmigrated Version: rel:R25-11#a72bc075 Versionshistorie & Revisions (1 transition, 8 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_CORE_00133@rel:R25-11#a72bc075
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#46ce05062026-09-30
  • R19-11rel:R19-11#ec3086112026-10-14
  • R20-11rel:R20-11#b0dfad952026-10-14
  • R21-11rel:R21-11#b0dfad952026-10-14
  • R22-11rel:R22-11#76aa11e92026-10-14
  • R23-11rel:R23-11#6652aa502026-10-14
  • R24-11rel:R24-11#ce6ab0582026-10-14
  • R25-11rel:R25-11#a72bc0752026-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 operator= [SWS_CORE_00134] Upstream: RS_AP_00130

ErrorDomain & operator= (ErrorDomain &&)=delete;

Move assignment shall be disabled

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain

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

Record
AUTOSAR/AP/record/SWS_CORE_00134
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00134@rel:R25-11#75490e2b
Content hash
75490e2b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00134
Status: valid/unmigrated Version: rel:R25-11#a3446024 Versionshistorie & Revisions (1 transition, 8 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_CORE_00134@rel:R25-11#a3446024
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#75490e2b2026-09-30
  • R19-11rel:R19-11#20aea2242026-10-14
  • R20-11rel:R20-11#e387a3ad2026-10-14
  • R21-11rel:R21-11#aa0b0f262026-10-14
  • R22-11rel:R22-11#19c08d112026-10-14
  • R23-11rel:R23-11#fed0e0492026-10-14
  • R24-11rel:R24-11#895991922026-10-14
  • R25-11rel:R25-11#a34460242026-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 operator== [SWS_CORE_00137] Upstream: RS_AP_00130

constexpr bool operator== (const ErrorDomain &other) const noexcept;

Compare for equality with another ara::core::ErrorDomain instance. Two ara::core::ErrorDomain instances compare equal when their identifiers (returned by Id()) are equal

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
otherthe other instance

Rückgabewert

TypBeschreibung
bool• TRUE: if other is equal to *this • FALSE: if other is NOT equal to *this

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

Record
AUTOSAR/AP/record/SWS_CORE_00137
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00137@rel:R25-11#b759f8cb
Content hash
b759f8cb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00137
Status: valid/unmigrated Version: rel:R25-11#f7d37a0f Versionshistorie & Revisions (1 transition, 8 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_CORE_00137@rel:R25-11#f7d37a0f
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#b759f8cb2026-09-30
  • R19-11rel:R19-11#a0d8e6902026-10-14
  • R20-11rel:R20-11#9376c7972026-10-14
  • R21-11rel:R21-11#9376c7972026-10-14
  • R22-11rel:R22-11#adbada1b2026-10-14
  • R23-11rel:R23-11#e5d7782f2026-10-14
  • R24-11rel:R24-11#a598cb362026-10-14
  • R25-11rel:R25-11#f7d37a0f2026-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 ~ErrorDomain [SWS_CORE_00136] Upstream: RS_AP_00130

~ErrorDomain () noexcept=default;

Destructor

This dtor is non-virtual (and trivial) so that this class can be a literal type. While this class has virtual functions, no polymorphic destruction is needed.

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain
Exception-Sicherheitexception safe
Sichtbarkeitprotected

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

Record
AUTOSAR/AP/record/SWS_CORE_00136
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00136@rel:R25-11#07855466
Content hash
07855466
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00136
Status: valid/unmigrated Version: rel:R25-11#a2600bf2 Versionshistorie & Revisions (1 transition, 8 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_CORE_00136@rel:R25-11#a2600bf2
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#078554662026-09-30
  • R19-11rel:R19-11#edbc85bf2026-10-14
  • R20-11rel:R20-11#ff7bed332026-10-14
  • R21-11rel:R21-11#ed0655f92026-10-14
  • R22-11rel:R22-11#488040762026-10-14
  • R23-11rel:R23-11#a1a2e73d2026-10-14
  • R24-11rel:R24-11#c2637b4a2026-10-14
  • R25-11rel:R25-11#a2600bf22026-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 CodeType [SWS_CORE_00122] Upstream: RS_AP_00130

using CodeType = std::int32_t;

Alias type for a domain-specific error code value

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain
SymbolCodeType

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

Record
AUTOSAR/AP/record/SWS_CORE_00122
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00122@rel:R25-11#eda170bd
Content hash
eda170bd
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00122
Status: valid/unmigrated Version: rel:R25-11#2a58f8c2 Versionshistorie & Revisions (1 transition, 8 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_CORE_00122@rel:R25-11#2a58f8c2
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#eda170bd2026-09-30
  • R19-11rel:R19-11#d15559ab2026-10-14
  • R20-11rel:R20-11#4b6c97132026-10-14
  • R21-11rel:R21-11#66ae07402026-10-14
  • R22-11rel:R22-11#177f745c2026-10-14
  • R23-11rel:R23-11#19dd7fc72026-10-14
  • R24-11rel:R24-11#512109402026-10-14
  • R25-11rel:R25-11#2a58f8c22026-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 IdType [SWS_CORE_00121] Upstream: RS_AP_00130

using IdType = std::uint64_t;

Alias type for a unique ErrorDomain identifier type

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain
SymbolIdType

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

Record
AUTOSAR/AP/record/SWS_CORE_00121
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00121@rel:R25-11#2f10a6eb
Content hash
2f10a6eb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00121
Status: valid/unmigrated Version: rel:R25-11#f1add759 Versionshistorie & Revisions (1 transition, 8 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_CORE_00121@rel:R25-11#f1add759
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#2f10a6eb2026-09-30
  • R19-11rel:R19-11#f406d7c42026-10-14
  • R20-11rel:R20-11#65a8d3162026-10-14
  • R21-11rel:R21-11#65a8d3162026-10-14
  • R22-11rel:R22-11#4bd6f05b2026-10-14
  • R23-11rel:R23-11#b74037a02026-10-14
  • R24-11rel:R24-11#b74037a02026-10-14
  • R25-11rel:R25-11#f1add7592026-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 SupportDataType [SWS_CORE_00123] Upstream: RS_AP_00130

using SupportDataType = {<support-data-type>};

Alias type for vendor-specific supplementary data

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain
SymbolSupportDataType

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

Record
AUTOSAR/AP/record/SWS_CORE_00123
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00123@rel:R25-11#d665f73f
Content hash
d665f73f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00123
Status: valid/unmigrated Version: rel:R25-11#6210684e Versionshistorie & Revisions (1 transition, 8 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_CORE_00123@rel:R25-11#6210684e
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#d665f73f2026-09-30
  • R19-11rel:R19-11#5cf4ba862026-10-14
  • R20-11rel:R20-11#d5a9b4eb2026-10-14
  • R21-11rel:R21-11#d5a9b4eb2026-10-14
  • R22-11rel:R22-11#658cc01f2026-10-14
  • R23-11rel:R23-11#7a992b542026-10-14
  • R24-11rel:R24-11#7a992b542026-10-14
  • R25-11rel:R25-11#6210684e2026-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