DEENESPTFRRUARHIKOZHNL

clase ara::core::ErrorDomain

[SWS_CORE_00110] Upstream: RS_AP_00130

class ErrorDomain {...};

Encapsulation of an ErrorDomain. An ErrorDomain is the controlling entity for ErrorCode’s error code values, and defines the mapping of such error code values to textual representations. This type constitutes a base class for ErrorDomain implementations. This class is a literal type, and subclasses are strongly advised to be literal types as well.

Header-Datei#include "ara/core/error_domain.h"
Forwarding-Header#include "ara/core/core_fwd.h"
Scopenamespace ara::core

Guía del usuarioGENERADO POR IA

Sirve como clase base para el control de códigos de error y asigna valores de error específicos de dominio a mensajes de texto.
GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: d0712f7c0a23 Procedencia Preguntas abiertas (2)
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

Sirve como clase base para el control de códigos de error y asigna valores de error específicos de dominio a mensajes de texto.

La clase ara::core::ErrorDomain sirve como clase base abstracta para el control de valores de error y asigna códigos específicos de área a sus representaciones textuales [SWS_CORE_00153]. Las subclases encapsulan un número de identificación único en todo el sistema y definen la traducción a textos de error inmutables, así como el tratamiento de excepciones específico del tipo. Para permitir su uso como Literal Type en tiempo de compilación, la clase base dispone de un destructor no virtual y protegido [SWS_CORE_00136]. Las operaciones de copia y de movimiento están completamente deshabilitadas, de modo que las instancias actúan como identidades inmutables.

Contexto

La clase ara::core::ErrorDomain constituye la base común para la gestión estructurada de errores en la AUTOSAR Adaptive Platform. Actúa como clase base abstracta para dominios de error concretos y asume la responsabilidad central de control de los valores de error que se encapsulan en ara::core::ErrorCode. Cada dominio abarca su propio espacio de nombres y define la correspondencia entre los valores de error específicos del dominio de tipo CodeType ([SWS_CORE_00122]) y representaciones de texto descriptivas a través de Message() ([SWS_CORE_00153]). Además, la clase proporciona el alias de tipo IdType ([SWS_CORE_00121]) para identificadores de dominio únicos en todo el sistema, así como SupportDataType ([SWS_CORE_00123]) para datos adicionales específicos del fabricante.

En el sistema global, ara::core::ErrorDomain interactúa con tres componentes esenciales:

  • Subclases: Los dominios de error específicos heredan de ara::core::ErrorDomain e implementan las funciones miembro virtuales puras para nombres de dominio, mensajes de error y tratamiento de excepciones.
  • ara::core::ErrorCode: Representa un valor de error concreto y delega la determinación del texto descriptivo al dominio de error asignado.
  • Cliente / código de aplicación: Consulta información de estado a través del código de error o directamente en el dominio ([SWS_CORE_00152]) o recibe excepciones de C++ lanzadas ([SWS_CORE_00154]).
diag_kontext Client Client ErrorCode ErrorCode Client->ErrorCode evalúa ErrorDomain ErrorDomain ErrorCode->ErrorDomain zugeordnet zu ErrorDomain->Client proporciona Name / Message / Exception Subklasse Subklasse Subklasse->ErrorDomain leitet ab von

Diagrama de contexto: Relaciones y colaboración de ara::core::ErrorDomain con subclases, códigos de error y código de aplicación. Fuentes: [SWS_CORE_00151], [SWS_CORE_00152], [SWS_CORE_00153], [SWS_CORE_00154].

Ciclo de vida

La instanciación de ara::core::ErrorDomain se realiza de forma protegida: el constructor posee visibilidad protected y espera un identificador de dominio único en todo el sistema de tipo IdType ([SWS_CORE_00135]). Dado que el constructor está declarado como constexpr y noexcept, la clase base admite la creación como Literal Type en tiempo de compilación. Se recomienda expresamente a las subclases garantizar también esta propiedad como Literal Type.

Cualquier duplicación o transferencia de instancias de dominio está deshabilitada:

El destructor está declarado como protected y definido como implementación predeterminada ([SWS_CORE_00136]). Se mantiene deliberadamente trivial y no virtual para que la clase pueda seguir siendo un Literal Type. Aunque ara::core::ErrorDomain proporciona interfaces virtuales puras, no se requiere ninguna destrucción polimórfica a través de punteros a la clase base ([SWS_CORE_00136]). En la práctica, es probable que las instancias concretas de dominio se gestionen como objetos de larga duración o estáticos (interpretación). Pregunta Q-a874dd64f6320d21 (abierta)

En cuanto a las relaciones de propiedad, todos los punteros a nombres ([SWS_CORE_00152]) y textos de error ([SWS_CORE_00153]) permanecen en posesión de la clase de dominio y los clientes no deben liberarlos. Todas las operaciones de lectura y comparación son seguras para subprocesos y seguras frente a excepciones ([SWS_CORE_00135], [SWS_CORE_00151]).

Ruta de uso

Dos instancias de ara::core::ErrorDomain se comparan como iguales si y solo si sus identificadores de dominio determinados mediante Id() ([SWS_CORE_00151]) coinciden ([SWS_CORE_00137], [SWS_CORE_00138]). El flujo típico en la resolución de errores y el tratamiento de excepciones se divide en los siguientes pasos:

  1. Identificación del dominio: El cliente o el objeto de error determina el nombre del dominio como cadena terminada en nulo a través de Name() ([SWS_CORE_00152]).
  2. Resolución de mensajes: A través de Message(errorCode) se pasa el valor numérico de error al dominio ([SWS_CORE_00153]). El dominio devuelve un texto de error basado en puntero, terminado en nulo, que nunca es nullptr.
  3. Tratamiento de excepciones: Si se debe convertir un código de error en una excepción, el cliente invoca ThrowAsException(errorCode) ([SWS_CORE_00154]). A continuación, el dominio lanza una instancia adecuada de ara::core::Exception que encapsula el código de error pasado.
Resolución de errores y activación de excepcionesClientErrorCodeErrorDomainFehler abfragenMessage(errorCode)const char* (Fehlertext)Text bereitstellenoptC++ Exceptions aktiviertThrowAsException(errorCode)wirft Exception

Diagrama de secuencia: Secuencia típica en la resolución de texto y lanzamiento de excepciones mediante una ErrorDomain. Fuentes: [SWS_CORE_00152], [SWS_CORE_00153], [SWS_CORE_00154].

Escenarios de error

Al trabajar con ara::core::ErrorDomain, deben tenerse en cuenta los siguientes escenarios de error y requisitos de interfaz:

  • Pertenencia incorrecta a un dominio: Si se pasa al método Message() un errorCode que no procede de este ErrorDomain específico, esto representa la infracción especificada WrongDomainOfAn-ErrorCodeViolation ([SWS_CORE_00153]). Los emisores de la llamada deben garantizar que el código de error coincida con la instancia del dominio.
  • Excepciones de C++ deshabilitadas: El método ThrowAsException() no es seguro frente a excepciones (not exception safe) y lanza una excepción ([SWS_CORE_00154]). Si las excepciones de C++ están deshabilitadas en la cadena de herramientas del compilador, esta función no debe participar en la resolución de sobrecargas ([SWS_CORE_00154]).
  • Exclusión de puntero nulo: Ni Name() ni Message() deben devolver jamás nullptr ([SWS_CORE_00152], [SWS_CORE_00153]). Una implementación de subclase que devuelva nullptr infringe la especificación de la interfaz.

Esta guía fue generada por un asistente de curación mediante IA sobre la base de la especificación AUTOSAR R25-11.

Mapa de miembros

Diagrama de clases

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__core__ErrorDomain335 ErrorDomain + ErrorDomain() + operator=() + Id() + Message() + Name() + ThrowAsException() + operator!=() + operator==() + ~ErrorDomain() napext__com__secoc__ComSecOcFvmErrorDomain756 ComSecOcFvmErrorDomain napext__com__secoc__ComSecOcFvmErrorDomain756->nara__core__ErrorDomain335 napext__tsync__TsyncFvmErrorDomain111 TsyncFvmErrorDomain napext__tsync__TsyncFvmErrorDomain111->nara__core__ErrorDomain335 nara__com__ComErrorDomain658 ComErrorDomain nara__com__ComErrorDomain658->nara__core__ErrorDomain335 nara__com__e2e__ComE2EErrorDomain501 ComE2EErrorDomain nara__com__e2e__ComE2EErrorDomain501->nara__core__ErrorDomain335 nara__core__CoreErrorDomain113 CoreErrorDomain nara__core__CoreErrorDomain113->nara__core__ErrorDomain335 nara__core__FutureErrorDomain146 FutureErrorDomain nara__core__FutureErrorDomain146->nara__core__ErrorDomain335 nara__crypto__CryptoErrorDomain690 CryptoErrorDomain nara__crypto__CryptoErrorDomain690->nara__core__ErrorDomain335 nara__diag__DiagErrorDomain167 DiagErrorDomain nara__diag__DiagErrorDomain167->nara__core__ErrorDomain335 nara__diag__DiagOfferErrorDomain584 DiagOfferErrorDomain nara__diag__DiagOfferErrorDomain584->nara__core__ErrorDomain335 nara__diag__DiagReportingErrorDomain575 DiagReportingErrorDomain nara__diag__DiagReportingErrorDomain575->nara__core__ErrorDomain335 nara__diag__DiagSovdErrorDomain991 DiagSovdErrorDomain nara__diag__DiagSovdErrorDomain991->nara__core__ErrorDomain335 nara__diag__DiagUdsNrcErrorDomain838 DiagUdsNrcErrorDomain nara__diag__DiagUdsNrcErrorDomain838->nara__core__ErrorDomain335 nara__exec__ExecErrorDomain631 ExecErrorDomain nara__exec__ExecErrorDomain631->nara__core__ErrorDomain335 nara__per__PerErrorDomain979 PerErrorDomain nara__per__PerErrorDomain979->nara__core__ErrorDomain335 nara__phm__PhmErrorDomain808 PhmErrorDomain nara__phm__PhmErrorDomain808->nara__core__ErrorDomain335 nara__sm__SmErrorDomain386 SmErrorDomain nara__sm__SmErrorDomain386->nara__core__ErrorDomain335 nara__tsync__TsyncErrorDomain367 TsyncErrorDomain nara__tsync__TsyncErrorDomain367->nara__core__ErrorDomain335

Vista de detalle

Selecciona una entrada en el índice.

Constructores y destructor

ErrorDomain función 3

Copy construction shall be disabled

Sobrecargas ErrorDomain 3
ErrorDomain (const ErrorDomain &)=delete; SWS_CORE_00131
ErrorDomain (ErrorDomain &&)=delete; SWS_CORE_00132
explicit constexpr ErrorDomain (IdType id) noexcept; SWS_CORE_00135
~ErrorDomain función

Destructor

~ErrorDomain () noexcept=default;

Métodos

Id función

Return the unique domain identifier

constexpr IdType Id () const noexcept;
Message función

Return a textual representation of the given errorCode.

virtual const char * Message (CodeType errorCode) const noexcept=0;
Name función

Return the name of this ErrorDomain

virtual const char * Name () const noexcept=0;

Throw the given errorCode as an ara::core::Exception.

virtual void ThrowAsException (const ErrorCode &errorCode) const noexcept(false)=0;

Operadores

operator!= función

Compare for non-equality with another ara::core::ErrorDomain instance

constexpr bool operator!= (const ErrorDomain &other) const noexcept;
operator= función 2

Copy assignment shall be disabled

Sobrecargas = 2
ErrorDomain & operator= (const ErrorDomain &)=delete; SWS_CORE_00133
ErrorDomain & operator= (ErrorDomain &&)=delete; SWS_CORE_00134
operator== función

Compare for equality with another ara::core::ErrorDomain instance. Two ara::core::ErrorDomain instances compare equal when their identifiers (returned by Id()) are equal

constexpr bool operator== (const ErrorDomain &other) const noexcept;

Alias de tipo

CodeType alias de tipo

Alias type for a domain-specific error code value

using CodeType = std::int32_t;
IdType alias de tipo

Alias type for a unique ErrorDomain identifier type

using IdType = std::uint64_t;
SupportDataType alias de tipo

Alias type for vendor-specific supplementary data

using SupportDataType = {<support-data-type>};

Documentación de los métodos

función ErrorDomain [SWS_CORE_00131] Upstream: RS_AP_00130

ErrorDomain (const ErrorDomain &)=delete;

Copy construction shall be disabled

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain

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

Record
AUTOSAR/AP/record/SWS_CORE_00131
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00131@rel:R25-11#e1e4db5c
Content hash
e1e4db5c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00131
Status: valid/unmigrated Version: rel:R25-11#47cc58ff 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_CORE_00131@rel:R25-11#47cc58ff
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#a53699852026-09-30
  • R19-11rel:R19-11#8a5b83352026-10-14
  • R20-11rel:R20-11#253664202026-10-14
  • R21-11rel:R21-11#253664202026-10-14
  • R22-11rel:R22-11#12c0c3a52026-10-14
  • R23-11rel:R23-11#9f8935932026-10-14
  • R24-11rel:R24-11#d154072d2026-10-14
  • R25-11rel:R25-11#47cc58ff2026-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

función ErrorDomain [SWS_CORE_00132] Upstream: RS_AP_00130

ErrorDomain (ErrorDomain &&)=delete;

Move construction shall be disabled

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain

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

Record
AUTOSAR/AP/record/SWS_CORE_00132
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00132@rel:R25-11#79fec45d
Content hash
79fec45d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00132
Status: valid/unmigrated Version: rel:R25-11#50c27182 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_CORE_00132@rel:R25-11#50c27182
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#c062c5772026-09-30
  • R19-11rel:R19-11#aaaf0c582026-10-14
  • R20-11rel:R20-11#9db2d92d2026-10-14
  • R21-11rel:R21-11#9db2d92d2026-10-14
  • R22-11rel:R22-11#f11f44702026-10-14
  • R23-11rel:R23-11#a0c0a1ad2026-10-14
  • R24-11rel:R24-11#4d9ecc622026-10-14
  • R25-11rel:R25-11#50c271822026-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

función ErrorDomain [SWS_CORE_00135] Upstream: RS_AP_00130

explicit constexpr ErrorDomain (IdType id) noexcept;

Construct a new instance with the given id. Identifiers are expected to be system-wide unique.

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Sichtbarkeitprotected

Parameter (in)

ParameterBeschreibung
idthe unique identifier

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

Record
AUTOSAR/AP/record/SWS_CORE_00135
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00135@rel:R25-11#6734b86b
Content hash
6734b86b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00135
Status: valid/unmigrated Version: rel:R25-11#7727fc1e 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_CORE_00135@rel:R25-11#7727fc1e
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#cd0ce2332026-09-30
  • R19-11rel:R19-11#101178ec2026-10-14
  • R20-11rel:R20-11#af1004ad2026-10-14
  • R21-11rel:R21-11#4d1113e52026-10-14
  • R22-11rel:R22-11#c4c8d9b02026-10-14
  • R23-11rel:R23-11#ada36ef72026-10-14
  • R24-11rel:R24-11#3395c67f2026-10-14
  • R25-11rel:R25-11#7727fc1e2026-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

función Id [SWS_CORE_00151] Upstream: RS_AP_00130

constexpr IdType Id () const noexcept;

Return the unique domain identifier

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: 59f6b727c495 Procedencia
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

La función miembro Id() de la clase ara::core::ErrorDomain del archivo de cabecera ara/core/error_domain.h devuelve de forma síncrona el identificador unívoco del respectivo dominio de errores ([SWS_CORE_00151]). La llamada no espera parámetros de entrada y devuelve el identificador de dominio como valor del tipo IdType, garantizando así una distinción unívoca de los diferentes dominios de errores en todo el sistema.

Para el tratamiento de errores es relevante que la función esté declarada como noexcept y clasificada como exception safe ([SWS_CORE_00151]). Por consiguiente, nunca lanza excepciones y no notifica códigos de error ni casos especiales. Gracias a su propiedad como método constexpr, el identificador puede evaluarse, en caso necesario, ya en tiempo de compilación y utilizarse en expresiones constantes.

En lo relativo a concurrencia y condiciones de llamada, Id() está especificado como thread-safe ([SWS_CORE_00151]). La llamada no tiene estado y está libre de efectos secundarios modificadores, de modo que cualquier número de subprocesos puede acceder simultáneamente y sin mecanismos de bloqueo externos a la misma instancia.

En la interacción dentro de la arquitectura de dominios, el identificador constituye el criterio primario de comparación: según la especificación, dos instancias de ara::core::ErrorDomain se consideran iguales si y solo si coinciden sus identificadores proporcionados por Id(), lo cual es implementado directamente por el operador de igualdad operator== ([SWS_CORE_00137]).

Esta nota de uso fue creada por una IA y se basa en AUTOSAR Adaptive R25-11.

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
IdTypethe identifier

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

Record
AUTOSAR/AP/record/SWS_CORE_00151
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00151@rel:R25-11#162f8269
Content hash
162f8269
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00151
Status: valid/unmigrated Version: rel:R25-11#7915d90d 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_CORE_00151@rel:R25-11#7915d90d
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#a56b1e7b2026-09-30
  • R19-11rel:R19-11#854ced192026-10-14
  • R20-11rel:R20-11#543969362026-10-14
  • R21-11rel:R21-11#278e5e4b2026-10-14
  • R22-11rel:R22-11#18da8afd2026-10-14
  • R23-11rel:R23-11#2ad535bf2026-10-14
  • R24-11rel:R24-11#7a5f2e402026-10-14
  • R25-11rel:R25-11#7915d90d2026-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

función Message [SWS_CORE_00153] Upstream: RS_AP_00130

virtual const char * Message (CodeType errorCode) const noexcept=0;

Return a textual representation of the given errorCode.

The returned pointer remains owned by the ara::core::ErrorDomain sub-class and shall not be freed by clients.

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: 9827a3eb35a8 Procedencia Preguntas abiertas (1)
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

La función puramente virtual Message de la clase base ara::core::ErrorDomain del encabezado ara/core/error_domain.h sirve para la obtención síncrona de una representación textual para un código de error específico del dominio pasado errorCode [SWS_CORE_00153]. Devuelve un puntero a una cadena terminada en nulo (const char *) que garantiza no ser nunca nullptr. La memoria referenciada permanece bajo propiedad de la respectiva subclase de ara::core::ErrorDomain y en ningún caso debe ser liberada por los clientes llamantes [SWS_CORE_00153].

En lo relativo a la concurrencia y robustez, el método está declarado como noexcept, se considera seguro frente a excepciones (exception safe) y está diseñado para ser plenamente seguro para hilos (thread-safe) [SWS_CORE_00153]. En cuanto a posibles estados de error, se especifica que un errorCode que no proceda de la instancia respectiva de ara::core::ErrorDomain provoca una infracción del tipo WrongDomainOfAnErrorCodeViolation [SWS_CORE_00153].

En interacción con el modelo de tratamiento de errores de AUTOSAR, dominios de error concretos como ara::core::FutureErrorDomain [SWS_CORE_00443] y ara::core::CoreErrorDomain [SWS_CORE_05243] sobrescriben este método para transformar códigos de error específicos del dominio en textos de mensaje concretos. Interpretación: La interacción con ara::core::ErrorCode::Message() [SWS_CORE_00518], que devuelve una representación textual como StringView, se basa probablemente en que ErrorCode delega la traducción en el método Message del dominio de error asociado. Pregunta Q-f9007fdf5234b6a4 (abierta)

Esta nota de uso ha sido generada automáticamente sobre la base de los requisitos de la especificación.

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)WrongDomainOfAn- If the errorCode did not originate from this ara::core:: ErrorCodeViolation ErrorDomain

Parameter (in)

ParameterBeschreibung
errorCodethe domain-specific error code

Rückgabewert

TypBeschreibung
const char *the text as a null-terminated string, never nullptr

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

Record
AUTOSAR/AP/record/SWS_CORE_00153
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00153@rel:R25-11#2f76a682
Content hash
2f76a682
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00153
Status: valid/unmigrated Version: rel:R25-11#4d024521 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_CORE_00153@rel:R25-11#4d024521
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#317747242026-09-30
  • R19-11rel:R19-11#53fe833d2026-10-14
  • R20-11rel:R20-11#deab0cbe2026-10-14
  • R21-11rel:R21-11#deab0cbe2026-10-14
  • R22-11rel:R22-11#90438fcf2026-10-14
  • R23-11rel:R23-11#724c70902026-10-14
  • R24-11rel:R24-11#af836d942026-10-14
  • R25-11rel:R25-11#4d0245212026-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

función Name [SWS_CORE_00152] Upstream: RS_AP_00130

virtual const char * Name () const noexcept=0;

Return the name of this ErrorDomain

The returned pointer remains owned by class ara::core::ErrorDomain and shall not be freed by clients.

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
const char *the name as a null-terminated string, never nullptr

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

Record
AUTOSAR/AP/record/SWS_CORE_00152
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00152@rel:R25-11#7b56c95c
Content hash
7b56c95c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00152
Status: valid/unmigrated Version: rel:R25-11#fc1560e6 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_CORE_00152@rel:R25-11#fc1560e6
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#fbeb10062026-09-30
  • R19-11rel:R19-11#1091ac792026-10-14
  • R20-11rel:R20-11#5d2fb6242026-10-14
  • R21-11rel:R21-11#4d515fa72026-10-14
  • R22-11rel:R22-11#0f7fba942026-10-14
  • R23-11rel:R23-11#17438fd22026-10-14
  • R24-11rel:R24-11#089188232026-10-14
  • R25-11rel:R25-11#fc1560e62026-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

función ThrowAsException [SWS_CORE_00154] Upstream: RS_AP_00130

virtual void ThrowAsException (const ErrorCode &errorCode) const noexcept(false)=0;

Throw the given errorCode as an ara::core::Exception.

This function will determine the appropriate exception type for the given ErrorCode according to [SWS_CORE_10953] and throw it. The thrown exception will contain the given ErrorCode.

GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: f434ab45abb9 Procedencia
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

El método virtual puro ThrowAsException de la clase ara::core::ErrorDomain sirve para lanzar un código de error pasado de forma síncrona como una excepción del tipo ara::core::Exception [SWS_CORE_00154]. La función toma como parámetro de entrada una referencia a const ErrorCode &errorCode y no tiene valor de retorno, ya que la ejecución finaliza al lanzar la excepción [SWS_CORE_00154].

En lo relativo al comportamiento ante errores y excepciones, el dominio correspondiente determina el tipo de excepción adecuado para el código de error pasado conforme a [SWS_CORE_10953] y lo lanza [SWS_CORE_00154]. La excepción lanzada contiene el ErrorCode pasado [SWS_CORE_00154]. La función está clasificada como no segura ante excepciones (not exception safe) [SWS_CORE_00154].

Para la concurrencia y el contexto del compilador se aplican las siguientes directrices:

  • Seguridad para subprocesos: la llamada a ThrowAsException está especificada como segura para subprocesos (thread-safe) [SWS_CORE_00154].
  • Restricción con excepciones de C++ desactivadas: si las excepciones de C++ están desactivadas en la cadena de herramientas del compilador, la función no debe participar en la resolución de sobrecargas conforme a [SWS_CORE_10304] [SWS_CORE_00154].

En interacción con otros componentes, la función constituye la base para el lanzamiento de excepciones mediante objetos de error: así, ara::core::ErrorCode::ThrowAsException delega el lanzamiento al dominio asociado a través de this->Domain().ThrowAsException(*this) [SWS_CORE_00519]. Las implementaciones concretas sobrescriben esta interfaz para lanzar excepciones específicas como CoreException en CoreErrorDomain [SWS_CORE_05244] o FutureException en FutureErrorDomain [SWS_CORE_00444].

Este texto ha sido generado por una IA y se basa en la especificación AUTOSAR Adaptive R25-11.

Guía del implementador pendiente (complejidad I1)

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain
Exception-Sicherheitnot exception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
errorCodethe errorCode

Rückgabewert

TypBeschreibung
None

Exceptions

Any exception of the type as defined in [SWS_CORE_10953] containing the given ErrorCode

Hinweise: This function shall not participate in overload resolution when C++ exceptions are disabled in the compiler toolchain. As per [SWS_CORE_10304].

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

Record
AUTOSAR/AP/record/SWS_CORE_00154
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00154@rel:R25-11#2b7f8246
Content hash
2b7f8246
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00154
Status: valid/unmigrated Version: rel:R25-11#2ab310df 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_CORE_00154@rel:R25-11#2ab310df
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#04a7381e2026-09-30
  • R19-11rel:R19-11#d1678c642026-10-14
  • R20-11rel:R20-11#0a1202b52026-10-14
  • R21-11rel:R21-11#8bd539962026-10-14
  • R22-11rel:R22-11#2da1f5282026-10-14
  • R23-11rel:R23-11#b794869c2026-10-14
  • R24-11rel:R24-11#e8939dbd2026-10-14
  • R25-11rel:R25-11#2ab310df2026-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

función operator!= [SWS_CORE_00138] Upstream: RS_AP_00130

constexpr bool operator!= (const ErrorDomain &other) const noexcept;

Compare for non-equality with another ara::core::ErrorDomain instance

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
otherthe other instance

Rückgabewert

TypBeschreibung
bool• TRUE: if other is equal to *this • FALSE: if other is NOT equal to *this

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

Record
AUTOSAR/AP/record/SWS_CORE_00138
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00138@rel:R25-11#8b146f69
Content hash
8b146f69
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00138
Status: valid/unmigrated Version: rel:R25-11#fc670ab6 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_CORE_00138@rel:R25-11#fc670ab6
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#52d843402026-09-30
  • R19-11rel:R19-11#cc8291d02026-10-14
  • R20-11rel:R20-11#b8b660df2026-10-14
  • R21-11rel:R21-11#b8b660df2026-10-14
  • R22-11rel:R22-11#ef503a462026-10-14
  • R23-11rel:R23-11#4677b4a92026-10-14
  • R24-11rel:R24-11#4ca5ab382026-10-14
  • R25-11rel:R25-11#fc670ab62026-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

función operator= [SWS_CORE_00133] Upstream: RS_AP_00130

ErrorDomain & operator= (const ErrorDomain &)=delete;

Copy assignment shall be disabled

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain

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

Record
AUTOSAR/AP/record/SWS_CORE_00133
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00133@rel:R25-11#04c01447
Content hash
04c01447
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00133
Status: valid/unmigrated Version: rel:R25-11#a72bc075 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_CORE_00133@rel:R25-11#a72bc075
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#46ce05062026-09-30
  • R19-11rel:R19-11#ec3086112026-10-14
  • R20-11rel:R20-11#b0dfad952026-10-14
  • R21-11rel:R21-11#b0dfad952026-10-14
  • R22-11rel:R22-11#76aa11e92026-10-14
  • R23-11rel:R23-11#6652aa502026-10-14
  • R24-11rel:R24-11#ce6ab0582026-10-14
  • R25-11rel:R25-11#a72bc0752026-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

función operator= [SWS_CORE_00134] Upstream: RS_AP_00130

ErrorDomain & operator= (ErrorDomain &&)=delete;

Move assignment shall be disabled

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain

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

Record
AUTOSAR/AP/record/SWS_CORE_00134
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00134@rel:R25-11#fdb45077
Content hash
fdb45077
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00134
Status: valid/unmigrated Version: rel:R25-11#a3446024 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_CORE_00134@rel:R25-11#a3446024
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#75490e2b2026-09-30
  • R19-11rel:R19-11#20aea2242026-10-14
  • R20-11rel:R20-11#e387a3ad2026-10-14
  • R21-11rel:R21-11#aa0b0f262026-10-14
  • R22-11rel:R22-11#19c08d112026-10-14
  • R23-11rel:R23-11#fed0e0492026-10-14
  • R24-11rel:R24-11#895991922026-10-14
  • R25-11rel:R25-11#a34460242026-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

función operator== [SWS_CORE_00137] Upstream: RS_AP_00130

constexpr bool operator== (const ErrorDomain &other) const noexcept;

Compare for equality with another ara::core::ErrorDomain instance. Two ara::core::ErrorDomain instances compare equal when their identifiers (returned by Id()) are equal

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
otherthe other instance

Rückgabewert

TypBeschreibung
bool• TRUE: if other is equal to *this • FALSE: if other is NOT equal to *this

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

Record
AUTOSAR/AP/record/SWS_CORE_00137
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00137@rel:R25-11#304b3cb1
Content hash
304b3cb1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00137
Status: valid/unmigrated Version: rel:R25-11#f7d37a0f 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_CORE_00137@rel:R25-11#f7d37a0f
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#b759f8cb2026-09-30
  • R19-11rel:R19-11#a0d8e6902026-10-14
  • R20-11rel:R20-11#9376c7972026-10-14
  • R21-11rel:R21-11#9376c7972026-10-14
  • R22-11rel:R22-11#adbada1b2026-10-14
  • R23-11rel:R23-11#e5d7782f2026-10-14
  • R24-11rel:R24-11#a598cb362026-10-14
  • R25-11rel:R25-11#f7d37a0f2026-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

función ~ErrorDomain [SWS_CORE_00136] Upstream: RS_AP_00130

~ErrorDomain () noexcept=default;

Destructor

This dtor is non-virtual (and trivial) so that this class can be a literal type. While this class has virtual functions, no polymorphic destruction is needed.

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain
Exception-Sicherheitexception safe
Sichtbarkeitprotected

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

Record
AUTOSAR/AP/record/SWS_CORE_00136
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00136@rel:R25-11#d9ae61c4
Content hash
d9ae61c4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00136
Status: valid/unmigrated Version: rel:R25-11#a2600bf2 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_CORE_00136@rel:R25-11#a2600bf2
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#078554662026-09-30
  • R19-11rel:R19-11#edbc85bf2026-10-14
  • R20-11rel:R20-11#ff7bed332026-10-14
  • R21-11rel:R21-11#ed0655f92026-10-14
  • R22-11rel:R22-11#488040762026-10-14
  • R23-11rel:R23-11#a1a2e73d2026-10-14
  • R24-11rel:R24-11#c2637b4a2026-10-14
  • R25-11rel:R25-11#a2600bf22026-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

Documentación de los alias de tipo

alias de tipo CodeType [SWS_CORE_00122] Upstream: RS_AP_00130

using CodeType = std::int32_t;

Alias type for a domain-specific error code value

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain
SymbolCodeType

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

Record
AUTOSAR/AP/record/SWS_CORE_00122
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00122@rel:R25-11#c43a39a1
Content hash
c43a39a1
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00122
Status: valid/unmigrated Version: rel:R25-11#2a58f8c2 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_CORE_00122@rel:R25-11#2a58f8c2
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#eda170bd2026-09-30
  • R19-11rel:R19-11#d15559ab2026-10-14
  • R20-11rel:R20-11#4b6c97132026-10-14
  • R21-11rel:R21-11#66ae07402026-10-14
  • R22-11rel:R22-11#177f745c2026-10-14
  • R23-11rel:R23-11#19dd7fc72026-10-14
  • R24-11rel:R24-11#512109402026-10-14
  • R25-11rel:R25-11#2a58f8c22026-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

alias de tipo IdType [SWS_CORE_00121] Upstream: RS_AP_00130

using IdType = std::uint64_t;

Alias type for a unique ErrorDomain identifier type

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain
SymbolIdType

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

Record
AUTOSAR/AP/record/SWS_CORE_00121
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00121@rel:R25-11#5252111b
Content hash
5252111b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00121
Status: valid/unmigrated Version: rel:R25-11#f1add759 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_CORE_00121@rel:R25-11#f1add759
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#2f10a6eb2026-09-30
  • R19-11rel:R19-11#f406d7c42026-10-14
  • R20-11rel:R20-11#65a8d3162026-10-14
  • R21-11rel:R21-11#65a8d3162026-10-14
  • R22-11rel:R22-11#4bd6f05b2026-10-14
  • R23-11rel:R23-11#b74037a02026-10-14
  • R24-11rel:R24-11#b74037a02026-10-14
  • R25-11rel:R25-11#f1add7592026-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

alias de tipo SupportDataType [SWS_CORE_00123] Upstream: RS_AP_00130

using SupportDataType = {<support-data-type>};

Alias type for vendor-specific supplementary data

Header-Datei#include "ara/core/error_domain.h"
Scopeclass ara::core::ErrorDomain
SymbolSupportDataType

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

Record
AUTOSAR/AP/record/SWS_CORE_00123
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_CORE_00123@rel:R25-11#cf2f2789
Content hash
cf2f2789
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Core.pdf#nameddest=SWS_CORE_00123
Status: valid/unmigrated Version: rel:R25-11#6210684e 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_CORE_00123@rel:R25-11#6210684e
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#d665f73f2026-09-30
  • R19-11rel:R19-11#5cf4ba862026-10-14
  • R20-11rel:R20-11#d5a9b4eb2026-10-14
  • R21-11rel:R21-11#d5a9b4eb2026-10-14
  • R22-11rel:R22-11#658cc01f2026-10-14
  • R23-11rel:R23-11#7a992b542026-10-14
  • R24-11rel:R24-11#7a992b542026-10-14
  • R25-11rel:R25-11#6210684e2026-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