دالة Message [SWS_SM_81249] Upstream: RS_AP_00119, RS_AP_00159
const char * Message (CodeType errorCode) const noexcept override;
Returns the message associated with the error code.
تُستخدم الدالة العضو ara::sm::SmErrorDomain::Message للتحديد المتزامن لرسالة الخطأ النصية المقترنة برمز خطأ معين لنطاق خطأ State Management [SWS_SM_81249]. وهي مُعلنة في ملف الترويسة ara/sm/sm_error_domain.h ضمن نطاق الفئة ara::sm::SmErrorDomain ولها الحالة DRAFT في المواصفة AUTOSAR_AP_SWS_StateManagement §8.1.3.2.2.1 «Message».
تمتلك الواجهة المعلَمات وقيم الإرجاع التالية [SWS_SM_81249]:
- المعلمات:
errorCodeمن النوعCodeTypeيستقبل رقم الخطأ العددي المطلوب الحصول على الرسالة النصية المقترنة به. - القيمة المرجعة: مؤشر من النوع
const char *إلى رسالة الخطأ المقترنة برمز الخطأ المُمرر.
تنطبق ضمانات صارمة فيما يتعلق بالتزامن ومعالجة الاستثناءات أثناء التنفيذ: تم تحديد الدالة على أنها thread-safe وexception safe، كما تم الإعلان عنها باستخدام المعرف noexcept [SWS_SM_81249]. وبالتالي يمكن استدعاؤها بأمان من أي خيوط عشوائية دون الحاجة إلى أقفال مزامنة أو كتل try-catch.
في سياق إدارة الأخطاء في AUTOSAR Adaptive، تتجاوز هذه الطريقة الدالة الافتراضية لنطاق الخطأ الأساسي. تفسير: نظرًا لأن القيمة المرجعة محددة على أنها const char * بدون واجهة تخصيص، فمن المرجح أن يشير المؤشر بشكل نموذجي إلى سلاسل نصية حرفية ثابتة (static string literals) تظل صالحة طوال وقت تشغيل العملية بأكمله. سؤال Q-03fc170f18f910b4 (مفتوح)
تم إنشاء هذه الملاحظة بواسطة ذكاء اصطناعي بناءً على مواصفة AUTOSAR Adaptive R25-11.
دليل المنفِّذ قيد الإعداد (التعقيد I1)
| Header-Datei | #include "ara/sm/sm_error_domain.h" |
|---|---|
| Scope | class ara::sm::SmErrorDomain |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| errorCode | The error code number. |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| 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_SM_81249- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_SM_81249@rel:R25-11#6b7b7faf- Content hash
6b7b7faf- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_StateManagement.pdf#nameddest=SWS_SM_81249
Status: valid/unmigrated
Version: rel:R25-11#b28e7125
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/SWS_SM_81249@rel:R25-11#b28e7125
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · الأصل الألماني