function Offer [SWS_PHM_01143] Upstream: RS_HM_09159, RS_AP_00159
ara::core::Result< void > Offer () noexcept;
Enables potential invocations of RecoveryHandler.
The parameterless method Offer belongs to class ara::phm::RecoveryAction and is included via the header file ara/phm/recovery_action.h [SWS_PHM_01143]. Its purpose is to offer the service to Platform Health Management (PHM) in order to enable subsequent calls to the RecoveryHandler [SWS_PHM_01143]. The call is synchronous and takes no parameters [SWS_PHM_01143].
The result of the execution is returned as ara::core::Result<void> [SWS_PHM_01143]. In the error-free state, this Result is empty. If communication with the PHM daemon fails, the service cannot be offered and the function returns the error code PhmErrc::kOfferFailed with rollback semantics [SWS_PHM_01143].
Regarding execution safety, the method is specified as noexcept and exception safe [SWS_PHM_01143]. However, it is explicitly defined as not thread-safe [SWS_PHM_01143].
In the system context, there is a direct coupling to error handling: The RecoveryHandler of class ara::phm::RecoveryAction serves to react to execution errors (ara::exec::ExecutionErrorEvent) and supervision errors (TypeOfSupervision) [SWS_PHM_01142]. The PHM can only call this handler after the activation has previously been explicitly enabled via RecoveryAction::Offer [SWS_PHM_01142].
This usage note was generated automatically based on the specification.
| Header-Datei | #include "ara/phm/recovery_action.h" |
|---|---|
| Scope | class ara::phm::RecoveryAction |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | not thread-safe |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result< void > | A Result, being either empty or containing any of the errors defined below. |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| PhmErrc::kOfferFailed | rollback_semantics Service could not be offered due to failure of communication with Phm daemon |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_PHM_01143- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_PHM_01143@rel:R25-11#857c7b2e- Content hash
857c7b2e- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01143
Status: valid/unmigrated
Version: rel:R25-11#d8dd83b4
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_PHM_01143@rel:R25-11#d8dd83b4
Recorded Revisions (8):
- R25-11
rel:R25-11#857c7b2e2026-09-30 - R19-11
rel:R19-11#ca5925372026-10-14 - R20-11
rel:R20-11#17739ebd2026-10-14 - R21-11
rel:R21-11#da1133fa2026-10-14 - R22-11
rel:R22-11#cf1368c72026-10-14 - R23-11
rel:R23-11#86ed8de42026-10-14 - R24-11
rel:R24-11#d8dd83b42026-10-14 - R25-11
rel:R25-11#d8dd83b42026-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 · German original