DEENESPTFRRUARHIKOZHNL

class ara::fw::FwErrorDomain

Diese Seite wurde vollständig KI-generiert auf Basis von SWS Firewall (R25-11) — kein offizieller AUTOSAR-Text und keine automatisch extrahierte API-Seite wie die übrigen Module. Als Interpretation gekennzeichnete Aussagen sind Schlussfolgerungen aus den Quellen.

[AP_SWS_Fw_83006] wording not yet imported · Header ara/fw/fw_error_domain.h

class FwErrorDomain final : public ara::core::ErrorDomain {...};

Class representing the firewall error domain.

Header-Datei#include "ara/fw/fw_error_domain.h"
Scopenamespace ara::fw

User GuideAI-GENERATED

Defines the Firewall error domain for translating error codes into descriptive texts and module-specific exceptions.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: d6dd4b1d5dfd Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Defines the Firewall error domain for translating error codes into descriptive texts and module-specific exceptions.

The class represents the error domain of the Firewall module and links module-specific error codes with error texts and exceptions [AP_SWS_Fw_83007]. It provides descriptions for error codes and enables module-specific exceptions to be thrown selectively [AP_SWS_Fw_83011], [AP_SWS_Fw_83012]. Because the default constructor is deleted, usage occurs via a pre-instantiated domain whose interfaces are implemented as thread-safe [AP_SWS_Fw_83009].

Context

Class ara::fw::FwErrorDomain represents the specific error domain for the Firewall module (fw) within the AUTOSAR Adaptive Platform. As a specialization of ara::core::ErrorDomain, it defines the semantic context for all error states that can occur during Firewall operations. Encapsulation in a dedicated domain ensures that error codes of the Firewall module can be uniquely identified platform-wide and distinguished from errors of other subsystems.

Standardized type aliases belong to the central components of the interface: Errc references the underlying enumeration FwErrc [AP_SWS_Fw_83007], while Exception acts as an alias for the module-specific exception base class FwException [AP_SWS_Fw_83008]. Via method Name(), the class provides the identifier of the error domain [AP_SWS_Fw_83010]. The primary interaction partners are the functional Firewall implementation, the application software, and the higher-level error handling infrastructure of ara::core.

Lifecycle

The instantiation of ara::fw::FwErrorDomain is subject to strict requirements: the parameterless default constructor is explicitly declared as deleted (FwErrorDomain() = delete) [AP_SWS_Fw_83009]. Direct creation of instances on the stack or heap by users is thus prevented. In accordance with the platform standard for error domains, the domain instance typically exists as a global singleton that applications presumably access via a platform-wide access function. Question Q-47a5220d4797865a (open)

Regarding ownership, the error domain remains under the control of the runtime environment and has a static lifetime over the entire process runtime. Because multiple execution paths can access error descriptions concurrently, the central inspection methods Name() and Message() are specified as thread-safe [AP_SWS_Fw_83010], [AP_SWS_Fw_83011]. Method ThrowAsException() also guarantees thread safety during concurrent access [AP_SWS_Fw_83012].

Usage Path

The typical usage path is divided into error generation on the part of the module, evaluation by the caller, and, if applicable, conversion into a C++ exception. If an operation of the Firewall fails, an error based on enumeration Errc [AP_SWS_Fw_83007] and encapsulated as ara::core::ErrorCode is delivered to the caller. The user can subsequently query detailed error texts via the domain or control error handling deterministically.

For diagnosis or logging, the application passes the error code to method Message(), which returns the associated textual description as a pointer to constant char [AP_SWS_Fw_83011]. If execution is instead to be continued via C++ exceptions, ThrowAsException() is called with the respective error object, whereupon the method instantiates and throws an instance of Exception (FwException) [AP_SWS_Fw_83008], [AP_SWS_Fw_83012].

Error handling and exception throwing via FwErrorDomainApplicationFirewall-DienstFwErrorDomainExecute Firewall operationFehler festgestelltReturn ErrorCode (Errc)altMeldungstext abfragenMessage(errorCode)const char* MeldungstextThrow exceptionThrowAsException(errorCode)throw FwException

Sequence diagram: Typical flow of error handling and exception throwing via FwErrorDomain. Sources: [AP_SWS_Fw_83007], [AP_SWS_Fw_83011], [AP_SWS_Fw_83012].

Error Scenarios

The information-querying methods offer strict guarantees against runtime errors. Both Name() and Message() are declared with noexcept and thus guarantee that no exceptions are thrown during the query of identifiers and error texts [AP_SWS_Fw_83010], [AP_SWS_Fw_83011]. A precondition for Message() is passing a valid error value of type CodeType [AP_SWS_Fw_83011].

In contrast, ThrowAsException() is explicitly annotated with noexcept(false), since its primary task consists in deliberately interrupting the regular control flow by throwing an FwException [AP_SWS_Fw_83012]. According to the specification, this function is classified as not exception safe, since it creates and emits an exception. Callers must therefore ensure that calls to ThrowAsException() are embedded in corresponding try-catch blocks if premature program termination is to be avoided.

This guide is based exclusively on the interface definition of ara::fw::FwErrorDomain from release R25-11.

Member map

Constructors and destructor

1

Type aliases

2

Detail view

Select an entry in the outline.

Constructors and destructor

FwErrorDomain function

Constructs a new FwErrorDomain object.

FwErrorDomain()=delete;

Methods

Message function

Returns the message associated with errorCode.

const char *Message(CodeType errorCode) const noexcept override;
Name function

Retrieve the name of the error domain.

const char *Name() const noexcept override;

Creates and throws FwException from an ErrorCode.

void ThrowAsException(const ara::core::ErrorCode &errorCode) const noexcept(false) override;

Type aliases

Errc type alias

Alias for the error code enumeration.

using Errc = FwErrc;
Exception type alias

Alias for the exception base class.

using Exception = FwException;

Documentation of methods and types

type alias Errc [AP_SWS_Fw_83007]

using Errc = FwErrc;

Alias for the error code enumeration.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 2d5371474311 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The type alias Errc is defined according to [AP_SWS_Fw_83007] as an alias for the error code enumeration FwErrc (using Errc = FwErrc;). The element is declared in the scope of class ara::fw::FwErrorDomain and is to be included via header file ara/fw/fw_error_domain.h [AP_SWS_Fw_83007].

Regarding usage, Errc represents no executable function call and therefore has neither parameters, return values, nor synchronous or asynchronous semantics [AP_SWS_Fw_83007]. Rather, it provides a uniform identifier for enumerating domain-specific error causes. Interpretation: The alias is likely intended to offer developers simplified and consistent access to the enumeration values of FwErrc within ara::fw::FwErrorDomain to type and query error states [AP_SWS_Fw_83007]. Question Q-bd8949830961e459 (open)

Since it is a purely compile-time construct, no runtime constraints regarding reentrancy, thread safety, or call sequences exist [AP_SWS_Fw_83007]. Specific error values or associations with DET or DEM reports are not prescribed in the specification element and are governed by the values of the underlying enumeration [AP_SWS_Fw_83007].

This usage note was automatically generated by an AI and is based on the specifications of AUTOSAR release R25-11.

Header-Datei#include "ara/fw/fw_error_domain.h"
Scopeclass ara::fw::FwErrorDomain

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/AP_SWS_Fw_83007
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_Fw_83007@rel:R25-11#fe5a5208
Content hash
fe5a5208
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Firewall.pdf#nameddest=AP_SWS_Fw_83007
Status: valid/unmigrated Version: rel:R25-11#fe5a5208 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/AP_SWS_Fw_83007@rel:R25-11#fe5a5208
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

type alias Exception [AP_SWS_Fw_83008]

using Exception = FwException;

Alias for the exception base class.

Header-Datei#include "ara/fw/fw_error_domain.h"
Scopeclass ara::fw::FwErrorDomain

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/AP_SWS_Fw_83008
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_Fw_83008@rel:R25-11#58425750
Content hash
58425750
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Firewall.pdf#nameddest=AP_SWS_Fw_83008
Status: valid/unmigrated Version: rel:R25-11#58425750 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/AP_SWS_Fw_83008@rel:R25-11#58425750
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function FwErrorDomain [AP_SWS_Fw_83009]

FwErrorDomain()=delete;

Constructs a new FwErrorDomain object.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: b2e3248af0ca Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The default constructor FwErrorDomain() is declared as deleted ([AP_SWS_Fw_83009]). Direct instantiation of objects of class ara::fw::FwErrorDomain via this constructor is thus excluded in application code. Interpretation: The deletion is presumably intended to ensure that the error domain is managed exclusively as a singleton. Question Q-54f7bc341f074e2c (open)

For using the error domain, the free function GetFwErrorDomain() is available ([AP_SWS_Fw_83002]). This returns a thread-safe reference to the existing domain object of type ara::core::ErrorDomain. Via this reference, the interfaces of the domain can be used:

The associated error codes are defined by the enumeration FwErrc ([AP_SWS_Fw_83001]), which is also available within the class via the alias Errc ([AP_SWS_Fw_83007]). Valid values are kServiceNotAvailable and kInvalidStateDependentFirewall. Developers should therefore not create their own instances, but always use the global reference.

This text was generated by an AI system based on the specification.

Implementer's Guide to follow (complexity I1)

Header-Datei#include "ara/fw/fw_error_domain.h"
Scopeclass ara::fw::FwErrorDomain

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/AP_SWS_Fw_83009
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_Fw_83009@rel:R25-11#5ebf65c6
Content hash
5ebf65c6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Firewall.pdf#nameddest=AP_SWS_Fw_83009
Status: valid/unmigrated Version: rel:R25-11#5ebf65c6 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/AP_SWS_Fw_83009@rel:R25-11#5ebf65c6
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function Name [AP_SWS_Fw_83010]

const char *Name() const noexcept override;

Retrieve the name of the error domain.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 6d5ba8b80ab1 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Usage and Semantics

The member function Name of class ara::fw::FwErrorDomain serves to retrieve the identifier of the error domain [AP_SWS_Fw_83010]. The call is synchronous and requires including header file ara/fw/fw_error_domain.h [AP_SWS_Fw_83010]. The function takes no arguments and returns a pointer of type const char * representing the name of the domain [AP_SWS_Fw_83010]. The return value is likely to be a null-terminated string whose validity is bound to the lifetime of the error domain. Question Q-6bd465d82e79a682 (open)

Error handling

The method is declared with the specifier noexcept [AP_SWS_Fw_83010]. Consequently, it throws no exceptions and does not define any specific error codes or error returns [AP_SWS_Fw_83010].

Concurrency and Limitations

According to the specification, the function is classified as thread-safe (thread-safe) [AP_SWS_Fw_83010]. Since it is a const member function (const), access does not modify the state of the instance and can be called safely concurrently from different execution contexts [AP_SWS_Fw_83010]. According to the specification, no special preconditions or ordering requirements exist [AP_SWS_Fw_83010].

This usage note was automatically generated based on the specification status of AUTOSAR Adaptive R25-11.

Header-Datei#include "ara/fw/fw_error_domain.h"
Scopeclass ara::fw::FwErrorDomain
Thread-Sicherheitthread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/AP_SWS_Fw_83010
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_Fw_83010@rel:R25-11#57023588
Content hash
57023588
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Firewall.pdf#nameddest=AP_SWS_Fw_83010
Status: valid/unmigrated Version: rel:R25-11#57023588 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/AP_SWS_Fw_83010@rel:R25-11#57023588
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function Message [AP_SWS_Fw_83011]

const char *Message(CodeType errorCode) const noexcept override;

Returns the message associated with errorCode.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 476d9af969d8 Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

use

The member function Message of class ara::fw::FwErrorDomain is declared via header file ara/fw/fw_error_domain.h and serves to synchronously retrieve an error message [AP_SWS_Fw_83011]. Upon invocation, the caller passes an error code errorCode of type CodeType. As a return value, the function returns a pointer of type const char * to the string assigned to the error code [AP_SWS_Fw_83011]. As override, the function overrides the corresponding interface of the base class [AP_SWS_Fw_83011].

Concurrency and Thread Safety

The specification explicitly defines Message as thread-safe [AP_SWS_Fw_83011]. Callers can therefore call the method in parallel from different threads for the same instance without additional synchronization measures. Due to qualification as a const method, the state of the error domain is not modified upon invocation [AP_SWS_Fw_83011].

Error Handling and Boundary Conditions

Due to declaration as noexcept, the method guarantees that no C++ exceptions are thrown [AP_SWS_Fw_83011]. Specific error codes or error values for unresolvable codes are not defined in the element [AP_SWS_Fw_83011]. The returned pointer presumably refers to an immutable, statically allocated string, meaning there is no memory management obligation for the caller. Question Q-2e98884ffd517367 (open)

This text was generated by an AI-assisted documentation system based on the AUTOSAR specification.

Header-Datei#include "ara/fw/fw_error_domain.h"
Scopeclass ara::fw::FwErrorDomain
Thread-Sicherheitthread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/AP_SWS_Fw_83011
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_Fw_83011@rel:R25-11#c4d84a2a
Content hash
c4d84a2a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Firewall.pdf#nameddest=AP_SWS_Fw_83011
Status: valid/unmigrated Version: rel:R25-11#c4d84a2a 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/AP_SWS_Fw_83011@rel:R25-11#c4d84a2a
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

function ThrowAsException [AP_SWS_Fw_83012]

void ThrowAsException(const ara::core::ErrorCode &errorCode) const noexcept(false) override;

Creates and throws FwException from an ErrorCode.

AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: a4633c240f7f Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

The member function ThrowAsException of class ara::fw::FwErrorDomain serves to instantiate and throw a FwException from a passed error code errorCode [AP_SWS_Fw_83012]. The function is included via header file ara/fw/fw_error_domain.h and takes a const reference to ara::core::ErrorCode as its sole parameter [AP_SWS_Fw_83012]. It has no return value (void) and is declared with const as well as override [AP_SWS_Fw_83012].

Through the specification clause noexcept(false), it is explicitly defined that exceptions may be thrown upon method invocation; the function deterministically creates and throws a FwException for the corresponding error case [AP_SWS_Fw_83012]. Regarding exception safety, the method is classified as not exception safe [AP_SWS_Fw_83012]. Calling code must therefore be prepared for the resulting exception interrupting regular control flow, requiring appropriate exception handling provisions.

Regarding concurrency, the method is specified as thread-safe, permitting concurrent invocation from multiple threads [AP_SWS_Fw_83012]. By virtue of keyword override, the method presumably overrides the interface function of the same name in a higher-level error domain [AP_SWS_Fw_83012]. Question Q-aae02c046243335c (open)

This usage note was generated by an AI and is based on the AUTOSAR specification for release R25-11.

Header-Datei#include "ara/fw/fw_error_domain.h"
Scopeclass ara::fw::FwErrorDomain
Thread-Sicherheitthread-safe
Exception-Sicherheitnot exception safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/AP_SWS_Fw_83012
Status
valid/unmigrated
Version
AUTOSAR/AP/record/AP_SWS_Fw_83012@rel:R25-11#ce2cde5d
Content hash
ce2cde5d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Firewall.pdf#nameddest=AP_SWS_Fw_83012
Status: valid/unmigrated Version: rel:R25-11#ce2cde5d 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/AP_SWS_Fw_83012@rel:R25-11#ce2cde5d
Point-in-Time History:
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill