DEENESPTFRRUARHIKOZHNL

class ara::idsm::IdsmException

Diese Seite wurde vollständig KI-generiert auf Basis von SWS IntrusionDetectionSystemManager (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.

Header: ara/idsm/idsm_error_domain.h · Spezifikationselemente: 2

User GuideAI-GENERATED

Encapsulates error codes of IdsM interfaces as a C++ exception for structured error handling in applications.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 44703541ef83 Provenance Open questions (2)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Encapsulates error codes of IdsM interfaces as a C++ exception for structured error handling in applications.

Class ara::idsm::IdsmException serves as a standardized C++ exception class for representing errors of the IdsM application programming interfaces [SWS_AIDSM_10704]. It derives from ara::core::Exception and encapsulates a specific error code for root cause analysis. Instantiation takes place via an explicit constructor with a ara::core::ErrorCode, which is guaranteed to be thread-safe and noexcept [SWS_AIDSM_10705]. The class thus enables deterministic and safe exception handling in failed IdsM sequences.

Context

Class ara::idsm::IdsmException acts as a dedicated exception class for signaling and handling errors of the application programming interfaces of the Intrusion Detection System Manager (IdsM) [SWS_AIDSM_10704]. It is defined in header ara/idsm/idsm_error_domain.h and publicly derives from base class ara::core::Exception [SWS_AIDSM_10704]. Within the AUTOSAR Adaptive Platform, the class primarily interacts with using functional clusters as well as the interfaces of the IdsM module. It provides developers with a standardized C++ exception mechanism to catch error states in a structured manner instead of propagating error messages exclusively via return values.

Lifecycle

Instantiation of ara::idsm::IdsmException is performed via an explicit constructor that requires passing a ara::core::ErrorCode [SWS_AIDSM_10705]. This constructor is declared with specifier noexcept, which guarantees that no further exceptions are raised during construction of the exception object [SWS_AIDSM_10705]. With regard to concurrency, construction is explicitly specified as thread-safe [SWS_AIDSM_10705], so that exception objects can also be safely instantiated in multithreaded execution contexts without additional synchronization.

As an exception object, IdsmException is subject to typical C++ value semantics. Creation takes place immediately upon detecting an error condition or upon unpacking an erroneous operation result. Lifetime is tied to evaluation in the associated catch block; after it terminates, the exception object is automatically destroyed by the runtime system.

Usage Path

Typical use of the class occurs in the context of synchronous IdsM service calls. An application calls a function of module idsm. If the IdsM runtime environment detects an invalid operation or an internal error, it creates a corresponding ara::core::ErrorCode and instantiates an ara::idsm::IdsmException with it [SWS_AIDSM_10705]. This exception is thrown and interrupts the regular control flow [SWS_AIDSM_10704].

The calling application catches the object specifically as ara::idsm::IdsmException or generally as ara::core::Exception. In the exception handler, the encapsulated error code can be extracted and evaluated for diagnostic logging, fallback strategies, or deterministic restarts.

Error handling with IdsmExceptionApplicationIdsM-APIIdsmExceptionFunktionsaufruf an IdsMFehler detektiert, ErrorCode erzeugtIdsmException(errorCode)throw IdsmExceptioncatch (const IdsmException&) and evaluation

Sequence diagram: Typical sequence of error handling with IdsmException during an API call. Sources: [SWS_AIDSM_10704], [SWS_AIDSM_10705]

Error Scenarios

Class ara::idsm::IdsmException serves to represent IdsM API errors and is used when function calls fail and this state is reported via the exception path [SWS_AIDSM_10704]. An essential precondition for creation is the presence of a valid ara::core::ErrorCode object that precisely describes the cause of the error [SWS_AIDSM_10705].

A secondary error state during object creation is excluded by the noexcept guarantee of the constructor [SWS_AIDSM_10705]. This avoids provoking an unexpected program abort via std::terminate in already critical error-handling paths. A postcondition of the constructor call is an initialized exception object that retains the error code unchanged for further diagnosis.

This guide is based exclusively on the AUTOSAR specification for the idsm module in release R25-11.

Synopsis

class IdsmException : public ara::core::Exception {...};

Declaration

class IdsmException : public ara::core::Exception {...};

Constructors and destructor

IdsmException function
explicit IdsmException(ara::core::ErrorCode errorCode) noexcept;

Documentation of methods and types

class IdsmException [SWS_AIDSM_10704]

class IdsmException : public ara::core::Exception {...};
Headerara/idsm/idsm_error_domain.h
Upstream-AnforderungRS_AP_00130, RS_AP_00122, RS_AP_00127

Exception-Klasse für IdsM-API-Fehler.

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

use

The class IdsmException serves as a central exception class for encapsulating and passing on errors of the IdsM API [SWS_AIDSM_10704]. As a specialization of ara::core::Exception, it conveys IdsM-specific error states and is declared in header ara/idsm/idsm_error_domain.h [SWS_AIDSM_10704]. Instantiation is performed explicitly via the constructor IdsmException(ara::core::ErrorCode errorCode), where a matching ara::core::ErrorCode object must be passed [SWS_AIDSM_10705].

Concurrency and Error Handling

The constructor of IdsmException is designated with the specifier noexcept, so that it is guaranteed that no further exceptions are thrown during instantiation of the exception object itself [SWS_AIDSM_10705]. In addition, the constructor is specified as thread-safe (thread-safe), which secures the creation of exception objects in concurrent or asynchronous execution contexts [SWS_AIDSM_10705].

Interaction and Type Aliases

Via the same header ara/idsm/idsm_error_domain.h, the type alias using Exception = IdsmException; is additionally available [SWS_AIDSM_10708]. This alias acts as a synonymous identifier of the exception class within the IdsM error domain and facilitates uniform error handling in interaction with the IdsM module [SWS_AIDSM_10708].

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

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10704
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10704@rel:R25-11#6bdd9740
Content hash
6bdd9740
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10704
Status: valid/unmigrated Version: rel:R25-11#a4c2de6f Versionshistorie & Revisions (1 transition, 3 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_AIDSM_10704@rel:R25-11#a4c2de6f
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#6bdd97402026-09-30
  • R24-11rel:R24-11#a4c2de6f2026-10-14
  • R25-11rel:R25-11#a4c2de6f2026-10-14 active
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 IdsmException [SWS_AIDSM_10705]

explicit IdsmException(ara::core::ErrorCode errorCode) noexcept;
Headerara/idsm/idsm_error_domain.h
Upstream-AnforderungRS_AP_00120, RS_AP_00121, RS_AP_00130
Thread Safetythread-safe

Konstruiert eine IdsmException mit ErrorCode.

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

Record
AUTOSAR/AP/record/SWS_AIDSM_10705
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10705@rel:R25-11#7bbb76fb
Content hash
7bbb76fb
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10705
Status: valid/unmigrated Version: rel:R25-11#36098071 Versionshistorie & Revisions (1 transition, 3 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_AIDSM_10705@rel:R25-11#36098071
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#7bbb76fb2026-09-30
  • R24-11rel:R24-11#360980712026-10-14
  • R25-11rel:R25-11#360980712026-10-14 active
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