Skip to main content

ErrorCodes.h File

Canonical framework error code constants used in GraphReport::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 GraphReport::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";
34inline constexpr const char* kRuntimeAbiMismatch = "misconfig.runtime_abi_mismatch";
35
36// ── Build / runtime classes ──────────────────────────────────────────────────────────────
38inline constexpr const char* kParseLaunch = "build.parse_launch";
40inline constexpr const char* kRuntimePull = "runtime.pull";
41
42// ── I/O classes ──────────────────────────────────────────────────────────────────────────
44inline constexpr const char* kIoParse = "io.parse";
46inline constexpr const char* kIoOpen = "io.open";
47
48// ── Infra classes ────────────────────────────────────────────────────────────────────────
56inline constexpr const char* kDispatcherUnavailable = "infra.dispatcher_unavailable";
58inline constexpr const char* kDispatcherUnavailableLegacy = "DispatcherUnavailable";
59
61inline bool is_dispatcher_unavailable(std::string_view code) {
63}
64
65} // namespace simaai::neat::error_codes

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.