DEENESPTFRRUARHIKOZHNL

क्लास 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] पाठ अभी आयात नहीं हुआ 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

उपयोगकर्ता गाइडएआई जनित

त्रुटि संदेशों की क्वेरी करने और उपयुक्त अपवादों को थ्रो करने के लिए shwa मॉड्यूल के त्रुटि डोमेन को परिभाषित करता है।
एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 170823c86562 उद्गम खुले प्रश्न (2)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

त्रुटि संदेशों की क्वेरी करने और उपयुक्त अपवादों को थ्रो करने के लिए shwa मॉड्यूल के त्रुटि डोमेन को परिभाषित करता है।

ara::shwa::ShwaErrorDomain क्लास shwa मॉड्यूल के लिए मॉड्यूल-विशिष्ट त्रुटि डोमेन प्रदान करती है और त्रुटि कोड को विवरणों तथा संबंधित अपवाद प्रकारों के साथ जोड़ती है [AP_SWS_SHWA_01305]। डोमेन नामों और त्रुटि संदेशों की टेक्स्ट क्वेरी के अलावा, यह ThrowAsException() के माध्यम से त्रुटियों को लक्षित रूप से एक अपवाद के रूप में फेंकने की संभावना प्रदान करती है [AP_SWS_SHWA_01310]। निरीक्षण विधियों को थ्रेड-सुरक्षित और अपवाद-सुरक्षित घोषित किया गया है।

संदर्भ

वर्ग ara::shwa::ShwaErrorDomain Adaptive Platform पर मॉड्यूल shwa के लिए विशिष्ट त्रुटि डोमेन (error domain) का प्रतिनिधित्व करता है और बेस क्लास ara::core::ErrorDomain से व्युत्पन्न होता है। यह मॉड्यूल-विशिष्ट त्रुटि कारणों की विशिष्ट पहचान, नामकरण और शाब्दिक विवरण के लिए एक केंद्रीय कड़ी के रूप में कार्य करता है। आमतौर पर, यह त्रुटि डोमेन ara::core::ErrorCode-दृष्टांतों (instances) और ShwaException के माध्यम से संबंधित अपवाद हैंडलिंग (exception handling) के साथ निकटता से इंटरैक्ट करता है। टाइप-उपनामों (type aliases) के माध्यम से, यह वर्ग मॉड्यूल-विशिष्ट त्रुटि प्रकारों के लिए सीधा प्रतिचित्रण प्रदान करता है: Errc, ShwaErrorCode [AP_SWS_SHWA_01305] को संदर्भित करता है और Exception, ShwaException [AP_SWS_SHWA_01306] को।

ShwaErrorDomainContext ShwaErrorDomain ShwaErrorDomain ErrorDomain ErrorDomain ShwaErrorDomain->ErrorDomain erbt von ShwaErrorCode ShwaErrorCode ShwaErrorDomain->ShwaErrorCode Errc ShwaException ShwaException ShwaErrorDomain->ShwaException अपवाद Anwendung Anwendung Anwendung->ShwaErrorDomain उपयोग करता है ErrorCode ErrorCode Anwendung->ErrorCode haelt ErrorCode->ShwaErrorDomain referenziert

संदर्भ आरेख: त्रुटि कोड, अपवादों और एप्लिकेशन लॉजिक की परस्पर क्रिया में ShwaErrorDomain का अंतःस्थापन। स्रोत: [AP_SWS_SHWA_01305], [AP_SWS_SHWA_01306], [AP_SWS_SHWA_01310]

जीवनचक्र

ShwaErrorDomain का दृष्टांतीकरण (instantiation) डिफ़ॉल्ट कंस्ट्रक्टर ShwaErrorDomain() के माध्यम से होता है, जिसे noexcept के रूप में घोषित किया गया है और यह थ्रेड सुरक्षा (thread safety) तथा अपवाद सुरक्षा (exception safety) दोनों सुनिश्चित करता है [AP_SWS_SHWA_01307]। AUTOSAR Adaptive त्रुटि हैंडलिंग मॉडल में एक त्रुटि डोमेन के प्रतिनिधि के रूप में, बार-बार त्रुटि संदर्भों का मिलान करने के लिए इस प्रकार के दृष्टांत को सामान्यतः दीर्घकालिक रूप से बनाए रखा जाता है (व्याख्या: संभवतः एक स्थिर या वैश्विक सिंगलटन ऑब्जेक्ट के रूप में)। प्रश्न Q-82cb2e14793eeaef (खुला) अपवाद ट्रिगर करने के अलावा, दृष्टांत के सभी पठन योग्य तरीके (reading methods) थ्रेड-सुरक्षित हैं और कोई अपवाद उत्पन्न नहीं करते हैं।

उपयोग पथ

नियमित प्रसंस्करण प्रवाह में, कोई घटक मॉड्यूल-विशिष्ट त्रुटि होने पर त्रुटि डोमेन के संदर्भ में एक ara::core::ErrorCode उत्पन्न करता है। टेक्स्ट आउटपुट या लॉगिंग के लिए, प्रयोक्ता त्रुटि डोमेन की पहचान निर्धारित करने के लिए विधि Name() को कॉल करता है [AP_SWS_SHWA_01308], या संख्यात्मक कोड से संबंधित त्रुटि विवरण प्राप्त करने के लिए Message(errorCode) का उपयोग करता है [AP_SWS_SHWA_01309]। यदि किसी त्रुटि कोड को C++ अपवाद पथ में स्थानांतरित किया जाना है, तो कॉल करने वाला लॉजिक ThrowAsException() को [AP_SWS_SHWA_01310] ट्रिगर करता है।

Nutzung von ShwaErrorDomainएप्लिकेशनErrorCodeShwaErrorDomainDomain()ShwaErrorDomain का संदर्भName()const char* डोमेन नामMessage(CodeType)const char* FehlerbeschreibungoptAusnahmebehandlung erforderlichThrowAsException(errorCode)wirft ShwaException

अनुक्रम आरेख: त्रुटि क्वेरी और अपवाद में रूपांतरण का विशिष्ट प्रवाह। स्रोत: [AP_SWS_SHWA_01308], [AP_SWS_SHWA_01309], [AP_SWS_SHWA_01310]

त्रुटि परिदृश्य

त्रुटि डोमेन स्वयं त्रुटियों के वर्गीकरण के लिए काम करते हैं और अपने निरीक्षण कार्यों में काफी हद तक दोष-सहिष्णु (fault-tolerant) डिज़ाइन किए गए हैं। Name() [AP_SWS_SHWA_01308] और Message() [AP_SWS_SHWA_01309] दोनों noexcept और exception-safe निर्दिष्ट हैं, ताकि अज्ञात त्रुटि कोड होने पर भी एक स्ट्रिंग के लिए एक परिभाषित पॉइंटर प्रदान किया जाए (व्याख्या: संभवतः एक स्थिर संकेत या प्लेसहोल्डर टेक्स्ट)। प्रश्न Q-03a63539b08ddb73 (खुला) एकमात्र स्पष्ट रूप से ट्रिगर करने वाला त्रुटि परिदृश्य विधि ThrowAsException(errorCode) द्वारा दर्शाया गया है [AP_SWS_SHWA_01310]: इसे noexcept(false) के साथ "not exception safe" के रूप में घोषित किया गया है, क्योंकि इसका प्राथमिक उद्देश्य प्रकार Exception (ShwaException) [AP_SWS_SHWA_01306] का अपवाद लक्षित रूप से फेंकना है।

यह मार्गदर्शिका केवल Adaptive Platform R25-11 के विनिर्देश डेटा पर आधारित है।

सदस्य मानचित्र

कंस्ट्रक्टर और डिस्ट्रक्टर

1

टाइप उपनाम

2

विवरण दृश्य

रूपरेखा में कोई प्रविष्टि चुनें।

कंस्ट्रक्टर और डिस्ट्रक्टर

ShwaErrorDomain फ़ंक्शन

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

ShwaErrorDomain () noexcept;

मेथड

Message फ़ंक्शन

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

const char * Message (CodeType errorCode) const noexcept override;
Name फ़ंक्शन

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

const char * Name () const noexcept override;
ThrowAsException फ़ंक्शन

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

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

टाइप उपनाम

Errc टाइप उपनाम

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

using Errc = ShwaErrorCode;
Exception टाइप उपनाम

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

using Exception = ShwaException;

विवरण

टाइप उपनाम 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#3667d9f6
Content hash
3667d9f6
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

टाइप उपनाम 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#0eb27365
Content hash
0eb27365
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

फ़ंक्शन 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#034b5cba
Content hash
034b5cba
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

फ़ंक्शन 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#6ae9cf31
Content hash
6ae9cf31
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

फ़ंक्शन 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#8e55ba38
Content hash
8e55ba38
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

फ़ंक्शन 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#47d174a1
Content hash
47d174a1
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