DEENESPTFRRUARHIKOZHNL

klasse ara::core::CoreErrorDomain

[SWS_CORE_05221] Upstream: RS_AP_00130

class CoreErrorDomain final :             public ErrorDomain {...};

An error domain for errors originating from the ara::core Functional Cluster.

Header-Datei#include "ara/core/core_error_domain.h"
Forwarding-Header#include "ara/core/core_fwd.h"
Scopenamespace ara::core
Basisklasse(n)ErrorDomain
Unique IDAs per ara::core::CoreErrorDomain in [SWS_CORE_90023]

User GuideAI-GEGENEREERD

Beheert foutcodes van het cluster ara::core, vertaalt deze naar foutmeldingen en gooit bijbehorende excepties.
DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 8500dff6850e Herkomst Open vragen (1)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Beheert foutcodes van het cluster ara::core, vertaalt deze naar foutmeldingen en gooit bijbehorende excepties.

De klasse ara::core::CoreErrorDomain representeert het foutdomein voor fouten uit het functionele cluster ara::core en koppelt beschrijvende tekstberichten aan numerieke foutcodes [SWS_CORE_05243]. Bovendien maakt zij via ThrowAsException() het omzetten van foutcodes naar typespecifieke CoreException-excepties mogelijk [SWS_CORE_05244]. Aangezien alle opvragende methoden thread-safe en constexpr-construeerbaar zijn, is het domein geschikt voor efficiënt clusterbreed gebruik. Als C++-excepties in de toolchain zijn uitgeschakeld, neemt de exceptiemethode niet deel aan de overbelastingsresolutie.

Context

De klasse ara::core::CoreErrorDomain representeert het specifieke foutdomein voor alle fouttoestanden die hun oorsprong hebben in het functionele cluster ara::core. Zij is gedefinieerd als een finale specialisatie van ErrorDomain en voorkomt daarmee verdere afleiding. De klasse stelt via de methode Name() de unieke korte naam van het domein beschikbaar [SWS_CORE_05242]. Voor een consistente integratie in het AUTOSAR-foutafhandelingsmodel definieert CoreErrorDomain centrale type-aliassen: Errc verwijst als alias rechtstreeks naar de enumeratie CoreErrc [SWS_CORE_05231], terwijl Exception de alias vormt voor de bijbehorende basisexceptieklasse CoreException [SWS_CORE_05232]. Tot de belangrijkste interactiepartners behoren de generieke foutkapsels van het type ErrorCode, die een referentie naar het betreffende foutdomein houden, evenals uitvoerende componenten die fouttoestanden diagnosticeren of afhandelen.

Levenscyclus

Het creëren van een CoreErrorDomain vindt plaats via de parameterloze standaardconstructor constexpr CoreErrorDomain() noexcept [SWS_CORE_05241]. Omdat de constructor als constexpr en noexcept is gedeclareerd, kan de instantie reeds tijdens compileertijd zonder allocatiekosten of exceptiegevaar worden gecreëerd.

Interpretatie: Aangezien foutdomeinen in de AUTOSAR Adaptive-standaard staatloos zijn ontworpen en uitsluitend constante metadata en transformatielogica beschikbaar stellen, bestaat er in het systeem typisch gezien een globale of statische singleton-instantie die clusterbreed wordt benaderd. Vraag Q-7b4761bf124c5755 (open) De instantie blijft gedurende de gehele looptijd van het proces geldig. Wat betreft concurrency zijn de bewerkingen van de klasse gespecificeerd als thread-safe [SWS_CORE_05241], [SWS_CORE_05242], [SWS_CORE_05243], waardoor gelijktijdige bevragingen vanuit meerdere parallelle threads zonder aanvullende synchronisatiemaatregelen zijn toegestaan.

Gebruikspad

Tijdens bedrijf wordt CoreErrorDomain vooral in twee typische scenario's geraadpleegd door het runtime-systeem of door applicatiecode: voor tekstuele foutinspectie en voor exceptieafhandeling.

Als er sprake is van een opgetreden fout, kan via de lidfunctie Message() onder doorgifte van de numerieke foutcode het bijbehorende tekstbericht worden opgevraagd [SWS_CORE_05243]. De specificatie garandeert bindend dat deze functie nooit een null-pointer (nullptr) oplevert, zodat de geretourneerde const char* zonder gevaar kan worden gebruikt voor diagnose-uitvoer of logging. Indien een fout niet als retourwaarde moet worden afgehandeld, maar als C++-exceptie moet worden gepropageerd, dient hiervoor de methode ThrowAsException() [SWS_CORE_05244]. Deze neemt een ErrorCode-instantie in ontvangst, instantieert de corresponderende CoreException en gooit deze op de actuele aanroepstack.

Fouttekstopvraag en exceptietriggering via CoreErrorDomainAnwendungCoreErrorDomainCoreExceptionMessage(errorCode)Textmeldung (never nullptr)Use Case: AusnahmebehandlungoptC++ Exceptions aktiviertThrowAsException(errorCode)wirft CoreException(errorCode)

Sequentiediagram: Typisch verloop voor het vertalen van foutcodes en het voorwaardelijk triggeren van excepties. Bronnen: [SWS_CORE_05243], [SWS_CORE_05244]

Foutscenario's

De functies Name() en Message() evenals de constructor zijn gedeclareerd als noexcept en geclassificeerd als exceptieveilig [SWS_CORE_05241], [SWS_CORE_05242], [SWS_CORE_05243]. Ze gooien zelfs onder foutcondities geen excepties en genereren geen eigen foutcodes.

Daarentegen is ThrowAsException() expliciet voorzien van noexcept(false) en aangemerkt als niet exceptieveilig, aangezien het deterministisch gooien van een exceptie (van het type CoreException) de primaire taak van deze interface vormt [SWS_CORE_05244]. Als centrale architectonische randvoorwaarde geldt: indien in de gebruikte toolchain respectievelijk de compilerinstellingen C++-excepties zijn uitgeschakeld, mag deze functie niet deelnemen aan de overbelastingsresolutie [SWS_CORE_05244]. Dit voorkomt compilatiefouten in systeemomgevingen die de fouttolerante embedded-benadering zonder C++-exceptieafhandeling volgen.

Deze handleiding is gegenereerd door een AI-systeem op basis van de specificatie R25-11.

Ledenkaart

Constructors en destructor

1

Type-aliassen

2

Klassendiagram

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

G nara__core__CoreErrorDomain113 CoreErrorDomain + CoreErrorDomain() + Message() + Name() + ThrowAsException() nara__core__ErrorDomain335 ErrorDomain nara__core__CoreErrorDomain113->nara__core__ErrorDomain335

Detailweergave

Kies een item in de inhoudsopgave.

Constructors en destructor

Default constructor

constexpr CoreErrorDomain () noexcept;

Methoden

Message functie

Translate an error code value into a text message

const char * Message (ErrorDomain::CodeType errorCode) const noexcept override;
Name functie

Return the ApApplicationErrorDomain. shortName of this error domain

const char * Name () const noexcept override;

Throw the exception type corresponding to the given ErrorCode.

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

Type-aliassen

Errc typealias

Alias for the error code value enumeration

using Errc = CoreErrc;
Exception typealias

Alias for the exception base class

Documentatie van de methoden

functie CoreErrorDomain [SWS_CORE_05241] Upstream: RS_AP_00130

constexpr CoreErrorDomain () noexcept;

Default constructor

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

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

Record
AUTOSAR/AP/record/SWS_CORE_05241
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_05241@rel:R25-11#98353edf
Content hash
98353edf
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_05241
Status: valid/unmigrated Version: rel:R25-11#3e485a80 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_05241@rel:R25-11#3e485a80
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#b295a3ea2026-09-30
  • R19-11rel:R19-11#070db4fd2026-10-14
  • R20-11rel:R20-11#fbd86c322026-10-14
  • R21-11rel:R21-11#f39944522026-10-14
  • R22-11rel:R22-11#326fb7c62026-10-14
  • R23-11rel:R23-11#5f0eb25d2026-10-14
  • R24-11rel:R24-11#3e485a802026-10-14
  • R25-11rel:R25-11#3e485a802026-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

functie Message [SWS_CORE_05243] Upstream: RS_AP_00130

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

Translate an error code value into a text message

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

Parameter (in)

ParameterBeschreibung
errorCodethe error code value

Rückgabewert

TypBeschreibung
const char *the text message, never nullptr

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

Record
AUTOSAR/AP/record/SWS_CORE_05243
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_05243@rel:R25-11#fba51490
Content hash
fba51490
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_05243
Status: valid/unmigrated Version: rel:R25-11#00427b91 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_05243@rel:R25-11#00427b91
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#09cacd332026-09-30
  • R19-11rel:R19-11#d12bc2432026-10-14
  • R20-11rel:R20-11#2b2da89e2026-10-14
  • R21-11rel:R21-11#2b2da89e2026-10-14
  • R22-11rel:R22-11#73527d722026-10-14
  • R23-11rel:R23-11#17fa2fc82026-10-14
  • R24-11rel:R24-11#00427b912026-10-14
  • R25-11rel:R25-11#00427b912026-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

functie Name [SWS_CORE_05242] Upstream: RS_AP_00130

const char * Name () const noexcept override;

Return the ApApplicationErrorDomain. shortName of this error domain

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

Rückgabewert

TypBeschreibung
const char *As per ara::core::CoreErrorDomain in [SWS_CORE_90023]

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

Record
AUTOSAR/AP/record/SWS_CORE_05242
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_05242@rel:R25-11#459177e8
Content hash
459177e8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_05242
Status: valid/unmigrated Version: rel:R25-11#1f57e0cc 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_05242@rel:R25-11#1f57e0cc
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#d99ba5832026-09-30
  • R19-11rel:R19-11#5d1f96f42026-10-14
  • R20-11rel:R20-11#4467617d2026-10-14
  • R21-11rel:R21-11#4467617d2026-10-14
  • R22-11rel:R22-11#11fc29042026-10-14
  • R23-11rel:R23-11#a9c4ef8a2026-10-14
  • R24-11rel:R24-11#347b7dd02026-10-14
  • R25-11rel:R25-11#1f57e0cc2026-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

functie ThrowAsException [SWS_CORE_05244] Upstream: RS_AP_00130

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

Throw the exception type corresponding to the given ErrorCode.

DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: c5a4846a6615 Herkomst
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

De lidfunctie ThrowAsException van de klasse ara::core::CoreErrorDomain (gedefinieerd in de header ara/core/core_error_domain.h) dient voor het synchroon genereren van een C++-exceptie op basis van een overgedragen foutcode [SWS_CORE_05244]. Als parameter accepteert de functie een referentie naar een constante instantie van ErrorCode (const ErrorCode &errorCode) [SWS_CORE_05244]. De methode heeft geen retourwaarde, maar werpt direct een exceptie van het type CoreException op, die het doorgegeven ErrorCode-object volledig inkapselt [SWS_CORE_05244].

Met betrekking tot uitvoeringscontext, concurrency en compiler-voorwaarden gelden de volgende vereisten:

  • Thread-safety: De functie is gespecificeerd als thread-safe (thread-safe) en kan dus veilig vanuit concurrente contexten worden aangeroepen [SWS_CORE_05244].
  • Exception safety: Het gedrag is formeel geclassificeerd als niet exceptieveilig (not exception safe), aangezien de functie is gedeclareerd met noexcept(false) en volgens opzet een exceptie genereert [SWS_CORE_05244].
  • Compilerbeperking: Als C++-excepties in de compiler-toolchain zijn gedeactiveerd, mag de methode volgens [SWS_CORE_10304] niet deelnemen aan overload resolution [SWS_CORE_05244].

Binnen de architectuur overschrijft (override) de methode de zuiver virtuele basisfunctie ThrowAsException van de abstracte klasse ara::core::ErrorDomain [SWS_CORE_00154]. Bij typisch gebruik wordt de functie niet direct op het domeinobject aangeroepen, maar geïnitieerd via de hulpmethode ErrorCode::ThrowAsException(), die de aanroep via this->Domain().ThrowAsException(*this) dynamisch doorstuurt naar het verantwoordelijke foutdomein [SWS_CORE_00519].

Deze gebruiksinstructie is gegenereerd door een AI op basis van de specificatie AUTOSAR Adaptive R25-11.

Implementer's Guide volgt (complexiteit I1)

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

Parameter (in)

ParameterBeschreibung
errorCodethe ErrorCode instance

Rückgabewert

TypBeschreibung
None

Exceptions

CoreException an exception 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_05244
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_05244@rel:R25-11#4fb905c9
Content hash
4fb905c9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_05244
Status: valid/unmigrated Version: rel:R25-11#76549789 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_05244@rel:R25-11#76549789
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#8be3b2f52026-09-30
  • R19-11rel:R19-11#98ba1eda2026-10-14
  • R20-11rel:R20-11#1103982a2026-10-14
  • R21-11rel:R21-11#52e0dd5c2026-10-14
  • R22-11rel:R22-11#5de8a1b22026-10-14
  • R23-11rel:R23-11#27770af82026-10-14
  • R24-11rel:R24-11#0c81b1e92026-10-14
  • R25-11rel:R25-11#765497892026-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

Documentatie van de typealiassen

typealias Errc [SWS_CORE_05231] Upstream: RS_AP_00130

using Errc = CoreErrc;

Alias for the error code value enumeration

Header-Datei#include "ara/core/core_error_domain.h"
Scopeclass ara::core::CoreErrorDomain
SymbolErrc

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

Record
AUTOSAR/AP/record/SWS_CORE_05231
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_05231@rel:R25-11#d212d967
Content hash
d212d967
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_05231
Status: valid/unmigrated Version: rel:R25-11#c33560a7 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_05231@rel:R25-11#c33560a7
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#634f14922026-09-30
  • R19-11rel:R19-11#37c73a1f2026-10-14
  • R20-11rel:R20-11#a73623902026-10-14
  • R21-11rel:R21-11#a73623902026-10-14
  • R22-11rel:R22-11#5b6e63892026-10-14
  • R23-11rel:R23-11#f478ff612026-10-14
  • R24-11rel:R24-11#c33560a72026-10-14
  • R25-11rel:R25-11#c33560a72026-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

typealias Exception [SWS_CORE_05232] Upstream: RS_AP_00130

using Exception = CoreException;

Alias for the exception base class

Header-Datei#include "ara/core/core_error_domain.h"
Scopeclass ara::core::CoreErrorDomain
SymbolException

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

Record
AUTOSAR/AP/record/SWS_CORE_05232
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_05232@rel:R25-11#b7f4ff02
Content hash
b7f4ff02
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_05232
Status: valid/unmigrated Version: rel:R25-11#5d1bfae3 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_05232@rel:R25-11#5d1bfae3
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#9c108ed52026-09-30
  • R19-11rel:R19-11#d33d63502026-10-14
  • R20-11rel:R20-11#907e01392026-10-14
  • R21-11rel:R21-11#907e01392026-10-14
  • R22-11rel:R22-11#3eaa58ca2026-10-14
  • R23-11rel:R23-11#bdda71cf2026-10-14
  • R24-11rel:R24-11#5d1bfae32026-10-14
  • R25-11rel:R25-11#5d1bfae32026-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