函数 CryptoErrorDomain [SWS_CRYPT_19902] Upstream: RS_CRYPTO_02310
constexpr CryptoErrorDomain () noexcept;
Ctor of the CryptoErrorDomain .
用法与调用上下文
默认构造函数 CryptoErrorDomain() 初始化用于加密操作的错误域实例 [SWS_CRYPT_19902]。它被指定为 constexpr 和 noexcept,不接受任何参数,且没有返回值。其执行同步进行,并可在编译期完成。在应用程序中,由于对该域的访问通常通过全局函数 GetCryptoErrorDomain() 进行 [SWS_CRYPT_19952],因此可能很少需要手动实例化。 问题 Q-1e029d80fb7bf7d1 (未决)
错误处理与并发
对象的创建被定义为 exception safe 以及 thread-safe [SWS_CRYPT_19902]。由于构造函数声明带有 noexcept,调用时不会发生错误或异常;对于该构造函数,不存在向 DET 或 DEM 发送的错误消息。
模块内的相互作用
所创建的域构成了加密错误描述的上下文:
- 它通过类型别名
Errc[SWS_CRYPT_19903] 封装枚举CryptoErrc[SWS_CRYPT_10099] 的错误代码。 - 通过自由函数
MakeErrorCode()创建固定引用该域的ara::core::ErrorCode实例 [SWS_CRYPT_19951]。 - 该域的成员函数允许通过
Name()[SWS_CRYPT_19950] 查询标识符,通过Message()[SWS_CRYPT_19953] 进行文本解析,以及通过带有基类型Exception[SWS_CRYPT_19904] 的ThrowAsException()[SWS_CRYPT_19954] 抛出系统特定错误。
本使用说明基于 AUTOSAR Adaptive R25-11 规范自动生成。
实现者指南即将推出(复杂度 I1)
| Header-Datei | #include "ara/crypto/common/crypto_error_domain.h" |
|---|---|
| Scope | class ara::crypto::CryptoErrorDomain |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | thread-safe |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_CRYPT_19902- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CRYPT_19902@rel:R25-11#667734e0- Content hash
667734e0- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Cryptography.pdf#nameddest=SWS_CRYPT_19902
Status: valid/unmigrated
Version: rel:R25-11#21007e48
Versionshistorie & Revisions (1 transition, 7 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_CRYPT_19902@rel:R25-11#21007e48
Recorded Revisions (7):
- R25-11
rel:R25-11#5c19d14b2026-09-30 - R20-11
rel:R20-11#c58b453f2026-10-14 - R21-11
rel:R21-11#88535fe42026-10-14 - R22-11
rel:R22-11#943a31022026-10-14 - R23-11
rel:R23-11#565923b82026-10-14 - R24-11
rel:R24-11#6e99dbca2026-10-14 - R25-11
rel:R25-11#21007e482026-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 · 德文原文