DEENESPTFRRUARHIKOZHNL

klasse ara::shwa::ShwaErrorDomain

Diese Seite wurde vollständig KI-generiert auf Basis von SWS Safe Hardware Acceleration (R25-11) — kein offizieller AUTOSAR-Text und keine automatisch extrahierte API-Seite wie die übrigen Module. Als Interpretation gekennzeichnete Aussagen sind Schlussfolgerungen aus den Quellen.

[AP_SWS_SHWA_01304] tekst nog niet geïmporteerd Upstream: RS_AP_00122, RS_AP_00127, RS_AP_00140, RS_SHWA_00007

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

Die Spezifikation definiert diesen Klassentyp mit der gezeigten Schnittstelle.

Header-Datei#include "ara/shwa/shwa_error_domain.h"
Scopenamespace ara::shwa

User GuideAI-GEGENEREERD

Definieert het foutdomein van de module shwa voor het opvragen van foutmeldingen en het triggeren van passende uitzonderingen.
DOOR AI GEGENEREERD ongecontroleerd Model: gemini-3.8-flash-medium · Inspanning: medium · Temperatuur: niet regelbaar · Prompt: 170823c86562 Herkomst Open vragen (2)
vertaald uit de Duitse handleidinggemini-3.8-flash-low · 2026-10-13 · Duits origineel

Definieert het foutdomein van de module shwa voor het opvragen van foutmeldingen en het triggeren van passende uitzonderingen.

De klasse ara::shwa::ShwaErrorDomain stelt het modulespecifieke foutdomein voor de module shwa beschikbaar en koppelt foutcodes aan beschrijvingen en bijbehorende uitzonderingstypen [AP_SWS_SHWA_01305]. Naast het tekstueel opvragen van domeinnamen en foutmeldingen biedt zij via ThrowAsException() de mogelijkheid om fouten gericht als uitzondering te werpen [AP_SWS_SHWA_01310]. De inspectiemethoden zijn gedeclareerd als thread-safe en uitzonderingsveilig.

Context

De klasse ara::shwa::ShwaErrorDomain representeert het specifieke foutdomein voor de module shwa op het Adaptive Platform en leidt af van de basisklasse ara::core::ErrorDomain. Zij fungeert als centrale schakel voor de eenduidige identificatie, benaming en tekstuele beschrijving van modulespecifieke foutoorzaken. Typisch interacteert het foutdomein nauw met ara::core::ErrorCode-instanties en de bijbehorende uitzonderingsafhandeling via ShwaException. Via type-aliassen stelt de klasse een directe toewijzing aan de modulespecifieke fouttypen beschikbaar: Errc verwijst naar ShwaErrorCode [AP_SWS_SHWA_01305] en Exception naar ShwaException [AP_SWS_SHWA_01306].

ShwaErrorDomainContext ShwaErrorDomain ShwaErrorDomain ErrorDomain ErrorDomain ShwaErrorDomain->ErrorDomain erbt von ShwaErrorCode ShwaErrorCode ShwaErrorDomain->ShwaErrorCode Errc ShwaException ShwaException ShwaErrorDomain->ShwaException Exception Anwendung Anwendung Anwendung->ShwaErrorDomain nutzt ErrorCode ErrorCode Anwendung->ErrorCode haelt ErrorCode->ShwaErrorDomain referenziert

Contextdiagram: Inbedding van ShwaErrorDomain in het samenspel met foutcodes, uitzonderingen en de applicatielogica. Bronnen: [AP_SWS_SHWA_01305], [AP_SWS_SHWA_01306], [AP_SWS_SHWA_01310]

Levenscyclus

De instantiatie van ShwaErrorDomain vindt plaats via de standaardconstructor ShwaErrorDomain(), die gedeclareerd is als noexcept en zowel thread safety als exception safety waarborgt [AP_SWS_SHWA_01307]. Als representant van een foutdomein in het AUTOSAR Adaptive-foutafhandelingsmodel wordt een dergelijke instantie gewoonlijk langdurig aangehouden (interpretatie: vermoedelijk als een statisch of globaal singleton-object), om herhaaldelijk foutcontexten te vergelijken. Vraag Q-82cb2e14793eeaef (open) Afgezien van het triggeren van uitzonderingen zijn alle lezende methoden van de instantie thread-safe en werpen zij geen uitzonderingen.

Gebruikspad

In het reguliere verwerkingsverloop genereert een component bij het optreden van een modulespecifieke fout een ara::core::ErrorCode onder verwijzing naar het foutdomein. Voor tekstuitvoer of logging roept de gebruiker de methode Name() aan om de aanduiding van het foutdomein te achterhalen [AP_SWS_SHWA_01308], of laat zich middels Message(errorCode) de bij de numerieke code behorende foutbeschrijving leveren [AP_SWS_SHWA_01309]. Moet een foutcode worden overgedragen naar het C++-uitzonderingspad, dan initieert de aanroepende logica ThrowAsException() [AP_SWS_SHWA_01310].

Nutzung von ShwaErrorDomainAnwendungErrorCodeShwaErrorDomainDomain()Verwijzing naar ShwaErrorDomainName()const char* domeinnaamMessage(CodeType)const char* FehlerbeschreibungoptAusnahmebehandlung erforderlichThrowAsException(errorCode)wirft ShwaException

Sequentiediagram: Typisch verloop bij het opvragen van fouten en de conversie naar een uitzondering. Bronnen: [AP_SWS_SHWA_01308], [AP_SWS_SHWA_01309], [AP_SWS_SHWA_01310]

Foutscenario's

Foutdomeinen zelf dienen voor de classificatie van fouten en zijn in hun inspectiefuncties verregaand fouttolerant ontworpen. Zowel Name() [AP_SWS_SHWA_01308] als Message() [AP_SWS_SHWA_01309] zijn gespecificeerd als noexcept en exception-safe, zodat ook bij onbekende foutcodes een gedefinieerde pointer naar een tekenreeks wordt geleverd (interpretatie: vermoedelijk een statische indicatie- of plaatshoudertekst). Vraag Q-03a63539b08ddb73 (open) Het enige expliciet triggerende foutscenario vormt de methode ThrowAsException(errorCode) [AP_SWS_SHWA_01310]: deze is met noexcept(false) gedeclareerd als „not exception safe”, aangezien haar primaire doel bestaat in het gericht werpen van een uitzondering van het type Exception (ShwaException) [AP_SWS_SHWA_01306].

Deze handleiding is uitsluitend gebaseerd op de specificatiegegevens van het Adaptive Platform R25-11.

Ledenkaart

Constructors en destructor

1

Type-aliassen

2

Detailweergave

Kies een item in de inhoudsopgave.

Constructors en destructor

Die Spezifikation definiert diese Deklaration mit der in der Signatur ausgewiesenen Semantik.

ShwaErrorDomain () noexcept;

Methoden

Message functie

Führt die in der Signatur definierte Fehlerdomänen- oder Fehlerbehandlungsoperation aus.

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

Führt die in der Signatur definierte Fehlerdomänen- oder Fehlerbehandlungsoperation aus.

const char * Name () const noexcept override;

Führt die in der Signatur definierte Fehlerdomänen- oder Fehlerbehandlungsoperation aus.

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

Type-aliassen

Errc typealias

Der Typ-Alias ordnet den in der Signatur angegebenen Namen dem dargestellten Typ zu.

using Errc = ShwaErrorCode;
Exception typealias

Der Typ-Alias ordnet den in der Signatur angegebenen Namen dem dargestellten Typ zu.

using Exception = ShwaException;

Details

typealias Errc [AP_SWS_SHWA_01305] Upstream: RS_AP_00122

using Errc = ShwaErrorCode;

Der Typ-Alias ordnet den in der Signatur angegebenen Namen dem dargestellten Typ zu.

Scopeclass ara::shwa::ShwaErrorDomain

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01305
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01305@rel:R25-11#5fa17747
Content hash
5fa17747
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01305
Status: valid/unmigrated Version: rel:R25-11#d2981606 Versionshistorie & Revisions (1 transition)
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/AP_SWS_SHWA_01305@rel:R25-11#d2981606
Point-in-Time History:
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 [AP_SWS_SHWA_01306] Upstream: RS_AP_00122

using Exception = ShwaException;

Der Typ-Alias ordnet den in der Signatur angegebenen Namen dem dargestellten Typ zu.

Scopeclass ara::shwa::ShwaErrorDomain

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01306
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01306@rel:R25-11#3f74d33a
Content hash
3f74d33a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01306
Status: valid/unmigrated Version: rel:R25-11#c6c40f28 Versionshistorie & Revisions (1 transition)
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/AP_SWS_SHWA_01306@rel:R25-11#c6c40f28
Point-in-Time History:
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 ShwaErrorDomain [AP_SWS_SHWA_01307] Upstream: RS_AP_00119, RS_AP_00120, RS_AP_00159

ShwaErrorDomain () noexcept;

Die Spezifikation definiert diese Deklaration mit der in der Signatur ausgewiesenen Semantik.

Scopeclass ara::shwa::ShwaErrorDomain
Thread Safetythread-safe
Exception Safetyexception safe

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01307
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01307@rel:R25-11#a0ab6a91
Content hash
a0ab6a91
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01307
Status: valid/unmigrated Version: rel:R25-11#357e78fe Versionshistorie & Revisions (1 transition)
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/AP_SWS_SHWA_01307@rel:R25-11#357e78fe
Point-in-Time History:
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 [AP_SWS_SHWA_01309] Upstream: RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00159

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

Führt die in der Signatur definierte Fehlerdomänen- oder Fehlerbehandlungsoperation aus.

Scopeclass ara::shwa::ShwaErrorDomain
Thread Safetythread-safe
Exception Safetyexception safe

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01309
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01309@rel:R25-11#a6fbab4e
Content hash
a6fbab4e
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01309
Status: valid/unmigrated Version: rel:R25-11#6c181364 Versionshistorie & Revisions (1 transition)
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/AP_SWS_SHWA_01309@rel:R25-11#6c181364
Point-in-Time History:
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 [AP_SWS_SHWA_01308] Upstream: RS_AP_00119, RS_AP_00120, RS_AP_00159

const char * Name () const noexcept override;

Führt die in der Signatur definierte Fehlerdomänen- oder Fehlerbehandlungsoperation aus.

Scopeclass ara::shwa::ShwaErrorDomain
Thread Safetythread-safe
Exception Safetyexception safe

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01308
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01308@rel:R25-11#ac0a887c
Content hash
ac0a887c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01308
Status: valid/unmigrated Version: rel:R25-11#3907a87c Versionshistorie & Revisions (1 transition)
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/AP_SWS_SHWA_01308@rel:R25-11#3907a87c
Point-in-Time History:
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 [AP_SWS_SHWA_01310] Upstream: RS_AP_00120, RS_AP_00121

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

Führt die in der Signatur definierte Fehlerdomänen- oder Fehlerbehandlungsoperation aus.

Scopeclass ara::shwa::ShwaErrorDomain
Thread Safetythread-safe
Exception Safetynot exception safe

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

Record
AUTOSAR/AP/record/AP_SWS_SHWA_01310
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_SHWA_01310@rel:R25-11#d1252c33
Content hash
d1252c33
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_SafeHardwareAcceleration.pdf#nameddest=AP_SWS_SHWA_01310
Status: valid/unmigrated Version: rel:R25-11#865a3931 Versionshistorie & Revisions (1 transition)
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/AP_SWS_SHWA_01310@rel:R25-11#865a3931
Point-in-Time History:
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