DEENESPTFRRUARHIKOZHNL

class 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] wording not yet imported 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-GENERATED

Defines the error domain of the shwa module for querying error messages and throwing matching exceptions.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 170823c86562 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Defines the error domain of the shwa module for querying error messages and throwing matching exceptions.

Class ara::shwa::ShwaErrorDomain provides the module-specific error domain for module shwa and associates error codes with descriptions as well as associated exception types [AP_SWS_SHWA_01305]. In addition to textual querying of domain names and error messages, it offers the capability via ThrowAsException() to specifically throw errors as an exception [AP_SWS_SHWA_01310]. The inspection methods are declared thread-safe and exception-safe.

Context

Class ara::shwa::ShwaErrorDomain represents the specific error domain for module shwa on the Adaptive Platform and derives from base class ara::core::ErrorDomain. It acts as the central link for uniquely identifying, naming, and textually describing module-specific error causes. Typically, the error domain interacts closely with ara::core::ErrorCode instances as well as the associated exception handling via ShwaException. Via type aliases, the class provides a direct mapping to the module-specific error types: Errc refers to ShwaErrorCode [AP_SWS_SHWA_01305] and Exception to 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 uses ErrorCode ErrorCode Anwendung->ErrorCode haelt ErrorCode->ShwaErrorDomain referenziert

Context diagram: Embedding of ShwaErrorDomain in interaction with error codes, exceptions, and application logic. Sources: [AP_SWS_SHWA_01305], [AP_SWS_SHWA_01306], [AP_SWS_SHWA_01310]

Lifecycle

Instantiation of ShwaErrorDomain takes place via the default constructor ShwaErrorDomain(), which is declared as noexcept and ensures both thread safety and exception safety [AP_SWS_SHWA_01307]. As a representative of an error domain in the AUTOSAR Adaptive error handling model, such an instance is usually kept long-lived (interpretation: presumably as a static or global singleton object) to repeatedly match error contexts. Question Q-82cb2e14793eeaef (open) Apart from triggering exceptions, all reading methods of the instance are thread-safe and do not throw exceptions.

Usage Path

In regular processing flow, when a module-specific error occurs, a component creates a ara::core::ErrorCode referencing the error domain. For text output or logging, the user calls method Name() to determine the identifier of the error domain [AP_SWS_SHWA_01308], or has Message(errorCode) provide the error description associated with the numeric code [AP_SWS_SHWA_01309]. If an error code is to be transferred to the C++ exception path, the calling logic invokes ThrowAsException() [AP_SWS_SHWA_01310].

Nutzung von ShwaErrorDomainApplicationErrorCodeShwaErrorDomainDomain()Reference to ShwaErrorDomainName()const char* domain nameMessage(CodeType)const char* FehlerbeschreibungoptAusnahmebehandlung erforderlichThrowAsException(errorCode)wirft ShwaException

Sequence diagram: Typical sequence during error query and conversion into an exception. Sources: [AP_SWS_SHWA_01308], [AP_SWS_SHWA_01309], [AP_SWS_SHWA_01310]

Error Scenarios

Error domains themselves serve to classify errors and are designed to be largely fault-tolerant in their inspection functions. Both Name() [AP_SWS_SHWA_01308] and Message() [AP_SWS_SHWA_01309] are specified as noexcept and exception-safe, so that even for unknown error codes, a defined pointer to a character string is returned (interpretation: presumably a static note or placeholder text). Question Q-03a63539b08ddb73 (open) The only explicitly throwing error scenario is method ThrowAsException(errorCode) [AP_SWS_SHWA_01310]: It is declared with noexcept(false) as “not exception safe” because its primary purpose is the targeted throwing of an exception of type Exception (ShwaException) [AP_SWS_SHWA_01306].

This guide is based exclusively on the specification data of Adaptive Platform R25-11.

Member map

Constructors and destructor

1

Type aliases

2

Detail view

Select an entry in the outline.

Constructors and destructor

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

ShwaErrorDomain () noexcept;

Methods

Message function

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

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

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 aliases

Errc type alias

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

using Errc = ShwaErrorCode;
Exception type alias

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

using Exception = ShwaException;

Details

type alias 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#d2981606
Content hash
d2981606
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

type alias 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#c6c40f28
Content hash
c6c40f28
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

function 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#357e78fe
Content hash
357e78fe
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

function 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#6c181364
Content hash
6c181364
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

function 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#3907a87c
Content hash
3907a87c
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

function 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#865a3931
Content hash
865a3931
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