फ़ंक्शन 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.
उपयोग
क्लास ara::tsync::TsyncErrorDomain की विधि Message पास किए गए त्रुटि कोड के शाब्दिक त्रुटि विवरण को तुल्यकालिक रूप से प्राप्त करने के लिए कार्य करती है [SWS_TS_00907]। यह हेडर #include "ara/tsync/tsync_error_domain.h" के माध्यम से उपलब्ध कराई जाती है। इनपुट पैरामीटर के रूप में, फ़ंक्शन प्रकार CodeType का errorCode स्वीकार करता है और संबंधित संदेश के लिए एक निरंतर स्ट्रिंग पॉइंटर (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]। इसी तरह, हेडर #include "apext/tsync/fvm_error_domain.h" से apext::tsync::TsyncFvmErrorDomain भी थ्रेड और अपवाद सुरक्षा के संबंध में समान गारंटियों के तहत डोमेन-विशिष्ट त्रुटि पाठों को हल करने के लिए समान नाम का 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#ef9eae8d- Content hash
ef9eae8d- 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 · जर्मन मूल