Skip to main content

ErrorCodes.h File

Canonical framework error code constants used in SessionReport::error_code and PullError::code. More...

Included Headers

#include <string_view>

Namespaces Index

namespacesimaai
namespaceneat
namespaceerror_codes

Description

Canonical framework error code constants used in SessionReport::error_code and PullError::code.

Error codes follow a domain.reason taxonomy: the domain identifies the failure category (misconfig, build, runtime, io, infra); the reason is a snake_case token. This lets triage tools, dashboards, and CI bucket failures by domain while keeping per-failure granularity. Use the constants in this file rather than hard-coding strings, so the codes stay consistent across the framework.

File Listing

The file content with the documentation metadata removed is:

1
13#pragma once
14
15#include <string_view>
16
18
19// Naming rule:
20// - domain.reason
21// - lowercase tokens
22// - snake_case inside each token
23// Example: misconfig.input_shape
24
25// ── Misconfiguration classes ──────────────────────────────────────────────────────────────
27inline constexpr const char* kPipelineShape = "misconfig.pipeline_shape";
30inline constexpr const char* kCaps = "misconfig.caps";
32inline constexpr const char* kInputShape = "misconfig.input_shape";
33
34// ── Build / runtime classes ──────────────────────────────────────────────────────────────
36inline constexpr const char* kParseLaunch = "build.parse_launch";
38inline constexpr const char* kRuntimePull = "runtime.pull";
39
40// ── I/O classes ──────────────────────────────────────────────────────────────────────────
42inline constexpr const char* kIoParse = "io.parse";
44inline constexpr const char* kIoOpen = "io.open";
45
46// ── Infra classes ────────────────────────────────────────────────────────────────────────
54inline constexpr const char* kDispatcherUnavailable = "infra.dispatcher_unavailable";
56inline constexpr const char* kDispatcherUnavailableLegacy = "DispatcherUnavailable";
57
59inline bool is_dispatcher_unavailable(std::string_view code) {
61}
62
63} // namespace simaai::neat::error_codes

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.