función 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.
usar
El método Message de la clase ara::tsync::TsyncErrorDomain sirve para obtener de forma síncrona una descripción textual de error para un código de error transferido [SWS_TS_00907]. Se proporciona mediante el encabezado #include "ara/tsync/tsync_error_domain.h". Como parámetro de entrada, la función recibe errorCode del tipo CodeType y devuelve un puntero a cadena constante (const char *) al mensaje correspondiente [SWS_TS_00907].
Tratamiento de errores y concurrencia
La interfaz garantiza total seguridad frente a excepciones (exception safe) y está declarada como noexcept, por lo que se garantiza que la llamada se ejecute sin excepciones de C++ [SWS_TS_00907]. Además, la función está especificada como thread-safe y puede invocarse concurrentemente desde varios subprocesos sin inconvenientes [SWS_TS_00907]. Interpretación: El const char * devuelto debería apuntar a memoria estática e inmutable, por lo que a la parte llamante no le corresponde ninguna liberación manual de memoria. Pregunta Q-933f88e4fde03016 (abierta)
Interacción
Como método sobrescrito (override), la función se integra en el modelo uniforme de errores de AUTOSAR Adaptive [SWS_TS_00907]. De manera similar, apext::tsync::TsyncFvmErrorDomain del encabezado #include "apext/tsync/fvm_error_domain.h" también implementa una función Message homónima para resolver textos de error específicos del dominio bajo las mismas garantías relativas a la seguridad para subprocesos y frente a excepciones [SWS_TS_14210].
Esta nota de uso se generó de forma automatizada sobre la base de la especificación.
| 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#1efcc5bb- Content hash
1efcc5bb- 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 · Original en alemán