DEENESPTFRRUARHIKOZHNL

क्लास ara::per::PerErrorDomain

[SWS_PER_00312] Upstream: RS_AP_00122, RS_AP_00127, RS_AP_00140

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

Defines the error domain for Persistency.

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

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

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

त्रुटि कोड, टेक्स्ट विवरण और अपवाद प्रदान करने के लिए Persistency मॉड्यूल के त्रुटि डोमेन को परिभाषित करता है।

ara::per::PerErrorDomain क्लास Persistency मॉड्यूल के लिए त्रुटि डोमेन को परिभाषित करती है और त्रुटि कोड को विवरणात्मक संदेशों व अपवाद प्रकारों के साथ जोड़ती है [SWS_PER_00411]। यह थ्रेड-सुरक्षित इंटरफ़ेस के माध्यम से डोमेन नाम की क्वेरी करने और ठोस त्रुटि मानों के लिए त्रुटि विवरणों को हल करने में सक्षम बनाती है। आवश्यकता पड़ने पर, यह ThrowAsException() के माध्यम से त्रुटियों को C++ अपवादों में परिवर्तित करती है [SWS_PER_00350]। यदि कंपाइलर टूलचेन में अपवाद अक्षम हैं, तो यह ट्रिगरिंग फ़ंक्शन उपलब्ध नहीं होता है, जिससे त्रुटि जाँच पूरी तरह से रिटर्न-वैल्यू आधारित होनी चाहिए।

संदर्भ

ara::per::PerErrorDomain क्लास AUTOSAR Adaptive Platform के भीतर Persistency मॉड्यूल (Persistency) के लिए विशिष्ट त्रुटि डोमेन को परिभाषित करती है। यह बेस टाइप परिभाषा ara::core::ErrorDomain से इनहेरिट करती है और इसे final के रूप में घोषित किया गया है, जिससे यह सभी स्थायित्व-संबंधी ऑपरेशनों के टाइप्ड त्रुटि प्रबंधन और त्रुटि मैपिंग का आधार बनती है। अंतर्निहित त्रुटि कोड एन्यूमरेशन PerErrc के लिए मानकीकृत टाइप उपनामों Errc [SWS_PER_00411] और मॉड्यूल-विशिष्ट अपवाद बेस क्लास PerException के लिए Exception [SWS_PER_00412] के माध्यम से, क्लास संख्यात्मक त्रुटि मानों, सार्थक त्रुटि संदेशों और ठोस C++ अपवाद ऑब्जेक्ट्स को जोड़ती है। प्लेटफ़ॉर्म आर्किटेक्चर में, त्रुटि डोमेन Persistency सेवाओं, कॉलिंग कार्यात्मक समूहों और ara::core की सामान्य त्रुटि और परिणाम संरचनाओं के साथ निकटता से इंटरैक्ट करता है।

जीवनचक्र

इंस्टैंस का निर्माण मानक कंस्ट्रक्टर PerErrorDomain() [SWS_PER_00313] के माध्यम से होता है। यह कंस्ट्रक्टर noexcept के रूप में घोषित है, पूर्णतः अपवाद-सुरक्षित (exception safe) और थ्रेड-सुरक्षित (thread-safe) है। व्याख्या: संपूर्ण संचालन के दौरान Persistency त्रुटियों के लिए सुसंगत डोमेन तुलना और प्रकार समाधान सुनिश्चित करने के लिए, PerErrorDomain का इंस्टैंस आमतौर पर एक दीर्घकालिक या ग्लोबल ऑब्जेक्ट के रूप में प्रबंधित किए जाने की संभावना है। प्रश्न Q-5d90982fddec40a7 (खुला) चूंकि क्लास के सभी क्वेरी ऑपरेशन भी थ्रेड-सुरक्षित के रूप में वर्गीकृत हैं, इसलिए कॉलर स्तर पर अतिरिक्त सिंक्रोनाइज़ेशन तंत्र की आवश्यकता के बिना कई थ्रेड समानांतर रूप से एक ही डोमेन इंस्टैंस तक पहुंच सकते हैं।

उपयोग पथ

एक विशिष्ट उपयोग पथ में डोमेन की पहचान, समझने योग्य निदान जानकारी की क्वेरी करना और वैकल्पिक रूप से Persistency मॉड्यूल में हुई त्रुटियों के लिए अपवाद थ्रो करना शामिल है। सबसे पहले, सदस्य फ़ंक्शन Name() त्रुटि डोमेन के अद्वितीय पहचानकर्ता को स्ट्रिंग के रूप में लौटाता है [SWS_PER_00314]; इसे noexcept, अपवाद-सुरक्षित और थ्रेड-सुरक्षित के रूप में निर्दिष्ट किया गया है। यदि किसी Persistency ऑपरेशन में कोई त्रुटि होती है, तो उसका संख्यात्मक त्रुटि मान Message() के माध्यम से हल किया जाता है [SWS_PER_00315]। यह विधि CodeType प्रकार का संख्यात्मक त्रुटि कोड स्वीकार करती है और संबंधित त्रुटि संदेश को एक स्थिर वर्ण सूचक (const char *) के रूप में लौटाती है, जो पूर्ण अपवाद-सुरक्षा और थ्रेड-सुरक्षा की गारंटी के तहत भी है।

यदि किसी त्रुटि स्थिति को C++ अपवाद में परिवर्तित किया जाना है, तो फ़ंक्शन ThrowAsException() का उपयोग किया जाता है [SWS_PER_00350]। निम्नलिखित प्रवाह त्रुटि क्वेरी और अपवाद थ्रो करने की पारस्परिक क्रिया को स्पष्ट करता है:

PerErrorDomain में त्रुटि क्वेरी और अपवाद ट्रिगर करनाएप्लिकेशनPersistenzLaufzeitPerErrorDomainपर्सिस्टेंस ऑपरेशन निष्पादित करें()त्रुटि कोड / Result लौटानाMessage(errorCode)const char * (Fehlernachricht)optअपवाद प्रबंधन अपेक्षितThrowAsException(errorCode)throw PerException

अनुक्रम आरेख: PerErrorDomain के माध्यम से त्रुटि जाँच, टेक्स्ट क्वेरी और अपवाद थ्रो करने का विशिष्ट प्रवाह। स्रोत: [SWS_PER_00314], [SWS_PER_00315], [SWS_PER_00350]।

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

ara::per::PerErrorDomain के व्यावहारिक उपयोग में, डेवलपर्स को त्रुटि प्रबंधन और अपवाद-सुरक्षा से संबंधित विभिन्न गारंटियों पर विचार करना चाहिए। जबकि क्वेरी इंटरफ़ेस Name() [SWS_PER_00314] और Message() [SWS_PER_00315] को सख्ती से noexcept के रूप में घोषित किया गया है और अपवाद-सुरक्षित के रूप में वर्गीकृत किया गया है, सदस्य फ़ंक्शन ThrowAsException() को अपवाद-सुरक्षित नहीं (not exception safe) माना जाता है [SWS_PER_00350]। यह व्यवहार शब्दार्थिक रूप से उचित है, क्योंकि फ़ंक्शन का उद्देश्य त्रुटि कोड के अनुरूप अपवाद को नियंत्रित तरीके से थ्रो करना है (noexcept(false))।

एक महत्वपूर्ण सीमांत शर्त उन प्लेटफ़ॉर्मों या बिल्ड कॉन्फ़िगरेशन से संबंधित है जिनमें C++ अपवाद सक्षम नहीं हैं: यदि कंपाइलर में अपवाद प्रबंधन अक्षम है, तो ThrowAsException() [SWS_PER_00350] के अनुसार ओवरलोड रिज़ॉल्यूशन में भाग नहीं लेता है। ऐसे परिवेशों में, एप्लिकेशन सॉफ़्टवेयर को Exception [SWS_PER_00412] प्रकार के अपवाद ऑब्जेक्ट्स को पकड़ने के बजाय प्रदान किए गए उपनामों Errc [SWS_PER_00411] और Message() [SWS_PER_00315] के टेक्स्ट विवरणों के माध्यम से त्रुटि कोड के मूल्यांकन पर निर्भर रहना चाहिए।

यह गाइड AUTOSAR विनिर्देश आवश्यकताओं के आधार पर स्वचालित रूप से तैयार किया गया था।

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

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

1

टाइप उपनाम

2

क्लास आरेख

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

G nara__per__PerErrorDomain979 PerErrorDomain + PerErrorDomain() + Message() + Name() + ThrowAsException() nara__core__ErrorDomain335 ErrorDomain nara__per__PerErrorDomain979->nara__core__ErrorDomain335

विवरण दृश्य

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

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

PerErrorDomain फ़ंक्शन

Creates a PerErrorDomain instance.

PerErrorDomain () noexcept;

मेथड

Message फ़ंक्शन

Returns the message associated with the error code.

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

Returns the name of the error domain.

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

Throws the exception associated with the error code. As per [SWS_CORE_10304], this function does not participate in overload resolution when C++ exceptions are disabled in the compiler toolchain.

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

टाइप उपनाम

Errc टाइप उपनाम

Alias for the error code value enumeration.

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

Alias for the exception base class.

मेथड का प्रलेखन

फ़ंक्शन Message [SWS_PER_00315] Upstream: RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00159

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

Returns the message associated with the error code.

Header-Datei#include "ara/per/per_error_domain.h"
Scopeclass ara::per::PerErrorDomain
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
errorCodeThe error code number.

Rückgabewert

TypBeschreibung
const char *The message associated with the error code.

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

Record
AUTOSAR/AP/record/SWS_PER_00315
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00315@rel:R25-11#f533e34b
Content hash
f533e34b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00315
Status: valid/unmigrated Version: rel:R25-11#b3b0e84a 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_PER_00315@rel:R25-11#b3b0e84a
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#dcf865cc2026-09-30
  • R19-11rel:R19-11#fa40c0592026-10-14
  • R20-11rel:R20-11#482223252026-10-14
  • R21-11rel:R21-11#4762f8102026-10-14
  • R22-11rel:R22-11#03cd14022026-10-14
  • R23-11rel:R23-11#d69d63782026-10-14
  • R24-11rel:R24-11#b3b0e84a2026-10-14
  • R25-11rel:R25-11#b3b0e84a2026-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

फ़ंक्शन Name [SWS_PER_00314] Upstream: RS_AP_00119, RS_AP_00120, RS_AP_00159

const char * Name () const noexcept override;

Returns the name of the error domain.

Header-Datei#include "ara/per/per_error_domain.h"
Scopeclass ara::per::PerErrorDomain
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
const char *As per ara::per::PerErrorDomain in [SWS_CORE_90023].

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

Record
AUTOSAR/AP/record/SWS_PER_00314
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00314@rel:R25-11#d74d0eb6
Content hash
d74d0eb6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00314
Status: valid/unmigrated Version: rel:R25-11#bbc9c834 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_PER_00314@rel:R25-11#bbc9c834
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#8efa8b412026-09-30
  • R19-11rel:R19-11#157f07862026-10-14
  • R20-11rel:R20-11#578706942026-10-14
  • R21-11rel:R21-11#578706942026-10-14
  • R22-11rel:R22-11#7e3ba2a72026-10-14
  • R23-11rel:R23-11#4ed7a81d2026-10-14
  • R24-11rel:R24-11#f4d2bd532026-10-14
  • R25-11rel:R25-11#bbc9c8342026-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

फ़ंक्शन PerErrorDomain [SWS_PER_00313] Upstream: RS_AP_00119, RS_AP_00120, RS_AP_00159

PerErrorDomain () noexcept;

Creates a PerErrorDomain instance.

Header-Datei#include "ara/per/per_error_domain.h"
Scopeclass ara::per::PerErrorDomain
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_PER_00313
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00313@rel:R25-11#8d1179f9
Content hash
8d1179f9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00313
Status: valid/unmigrated Version: rel:R25-11#676bd5fe 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_PER_00313@rel:R25-11#676bd5fe
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#2fe03ca62026-09-30
  • R19-11rel:R19-11#493784652026-10-14
  • R20-11rel:R20-11#e90ad4282026-10-14
  • R21-11rel:R21-11#4fed90922026-10-14
  • R22-11rel:R22-11#c86bdbe02026-10-14
  • R23-11rel:R23-11#07bddb402026-10-14
  • R24-11rel:R24-11#676bd5fe2026-10-14
  • R25-11rel:R25-11#676bd5fe2026-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

फ़ंक्शन ThrowAsException [SWS_PER_00350] Upstream: RS_AP_00120, RS_AP_00121

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

Throws the exception associated with the error code. As per [SWS_CORE_10304], this function does not participate in overload resolution when C++ exceptions are disabled in the compiler toolchain.

Header-Datei#include "ara/per/per_error_domain.h"
Scopeclass ara::per::PerErrorDomain
Exception-Sicherheitnot exception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
errorCodeThe error to throw.

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_PER_00350
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00350@rel:R25-11#a6426a35
Content hash
a6426a35
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00350
Status: valid/unmigrated Version: rel:R25-11#d5cad670 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_PER_00350@rel:R25-11#d5cad670
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#ac2c50332026-09-30
  • R19-11rel:R19-11#08d8b5132026-10-14
  • R20-11rel:R20-11#bcef1c2f2026-10-14
  • R21-11rel:R21-11#bcef1c2f2026-10-14
  • R22-11rel:R22-11#855e1f712026-10-14
  • R23-11rel:R23-11#a44240ed2026-10-14
  • R24-11rel:R24-11#d5cad6702026-10-14
  • R25-11rel:R25-11#d5cad6702026-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

टाइप उपनामों का प्रलेखन

टाइप उपनाम Errc [SWS_PER_00411] Upstream: RS_AP_00122

using Errc = PerErrc;

Alias for the error code value enumeration.

Header-Datei#include "ara/per/per_error_domain.h"
Scopeclass ara::per::PerErrorDomain
SymbolErrc

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

Record
AUTOSAR/AP/record/SWS_PER_00411
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00411@rel:R25-11#c6fb7e70
Content hash
c6fb7e70
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00411
Status: valid/unmigrated Version: rel:R25-11#9d0ddf8d Versionshistorie & Revisions (1 transition, 7 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_PER_00411@rel:R25-11#9d0ddf8d
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#78fe22022026-09-30
  • R20-11rel:R20-11#39e744882026-10-14
  • R21-11rel:R21-11#39e744882026-10-14
  • R22-11rel:R22-11#8f96934a2026-10-14
  • R23-11rel:R23-11#9d0ddf8d2026-10-14
  • R24-11rel:R24-11#9d0ddf8d2026-10-14
  • R25-11rel:R25-11#9d0ddf8d2026-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

टाइप उपनाम Exception [SWS_PER_00412] Upstream: RS_AP_00122

using Exception = PerException;

Alias for the exception base class.

Header-Datei#include "ara/per/per_error_domain.h"
Scopeclass ara::per::PerErrorDomain
SymbolException

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

Record
AUTOSAR/AP/record/SWS_PER_00412
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00412@rel:R25-11#e05c6cba
Content hash
e05c6cba
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00412
Status: valid/unmigrated Version: rel:R25-11#12539c4d Versionshistorie & Revisions (1 transition, 7 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_PER_00412@rel:R25-11#12539c4d
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#0875fcdc2026-09-30
  • R20-11rel:R20-11#e88607572026-10-14
  • R21-11rel:R21-11#e88607572026-10-14
  • R22-11rel:R22-11#b0bd04f32026-10-14
  • R23-11rel:R23-11#12539c4d2026-10-14
  • R24-11rel:R24-11#12539c4d2026-10-14
  • R25-11rel:R25-11#12539c4d2026-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