دالة Message [SWS_TS_00907] Upstream: RS_AP_00120, RS_AP_00121, RS_AP_00130
const char * Message (CodeType errorCode) const noexcept override;
Returns the message associated with errorCode.
الاستخدام
تُستخدم الطريقة Message من الفئة ara::tsync::TsyncErrorDomain للاسترداد المتزامن لوصف خطأ نصي لرمز خطأ تم تمريره [SWS_TS_00907]. ويتم توفيرها عبر ملف الرأس #include "ara/tsync/tsync_error_domain.h". وتستقبل الدالة errorCode من النوع CodeType كمعلمة إدخال، وتُرجع مؤشر سلسلة نصية ثابتًا (const char *) يشير إلى الرسالة المقابلة [SWS_TS_00907].
معالجة الأخطاء والتزامن
تضمن الواجهة أمانًا تامًا ضد الاستثناءات (exception safe) وهي مُعلنة كـ noexcept، ولهذا يضمن تشغيل الاستدعاء دون استثناءات C++ [SWS_TS_00907]. علاوة على ذلك، تم تحديد الدالة كـ thread-safe ويمكن استدعاؤها بالتوازي من خيوط معالجة متعددة دون قلق [SWS_TS_00907]. تفسير: يُرجح أن const char * المُرجع يشير إلى ذاكرة ثابتة غير قابلة للتغيير، مما يعني عدم وجود حاجة لتحرير الذاكرة يدويًا من قِبل المستدعي. سؤال Q-933f88e4fde03016 (مفتوح)
تفاعل
بصفتها طريقة تم تجاوزها (override)، تندمج الدالة في نموذج الأخطاء الموحد لـ AUTOSAR Adaptive [SWS_TS_00907]. وبشكل مماثل، ينفذ apext::tsync::TsyncFvmErrorDomain أيضًا من ملف الرأس #include "apext/tsync/fvm_error_domain.h" دالة Message تحمل الاسم نفسه لحل نصوص الأخطاء الخاصة بالمجال بموجب نفس الضمانات المتعلقة بأمان خيوط المعالجة والاستثناءات [SWS_TS_14210].
تم توليد ملاحظة الاستخدام هذه تلقائياً بناءً على المواصفة.
| Header-Datei | #include "ara/tsync/tsync_error_domain.h" |
|---|---|
| Scope | class ara::tsync::TsyncErrorDomain |
| 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_TS_00907- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_TS_00907@rel:R25-11#8d1642bb- Content hash
8d1642bb- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_TimeSynchronization.pdf#nameddest=SWS_TS_00907
Status: valid/unmigrated
Version: rel:R25-11#16ac395e
Versionshistorie & Revisions (1 transition, 4 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_TS_00907@rel:R25-11#16ac395e
Recorded Revisions (4):
- R25-11
rel:R25-11#fb6984b62026-09-30 - R23-11
rel:R23-11#92c825fc2026-10-14 - R24-11
rel:R24-11#16ac395e2026-10-14 - R25-11
rel:R25-11#16ac395e2026-10-14 active
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 · الأصل الألماني