Skip to main content

ErrorCodes.h File

Canonical framework error codes used by SessionReport and PullError. More...

Included Headers

#include <string_view>

Namespaces Index

namespacesimaai
namespaceneat
namespaceerror_codes

Description

Canonical framework error codes used by SessionReport and PullError.

File Listing

The file content with the documentation metadata removed is:

1
6#pragma once
7
8#include <string_view>
9
11
12// Naming rule:
13// - domain.reason
14// - lowercase tokens
15// - snake_case inside each token
16// Example: misconfig.input_shape
17
18// Misconfiguration classes
19inline constexpr const char* kPipelineShape = "misconfig.pipeline_shape";
20inline constexpr const char* kCaps = "misconfig.caps";
21inline constexpr const char* kInputShape = "misconfig.input_shape";
22
23// Build/runtime classes
24inline constexpr const char* kParseLaunch = "build.parse_launch";
25inline constexpr const char* kRuntimePull = "runtime.pull";
26
27// IO classes
28inline constexpr const char* kIoParse = "io.parse";
29inline constexpr const char* kIoOpen = "io.open";
30
31// Infra classes
32inline constexpr const char* kDispatcherUnavailable = "infra.dispatcher_unavailable";
33// Legacy dispatcher value kept for compatibility with older reports.
34inline constexpr const char* kDispatcherUnavailableLegacy = "DispatcherUnavailable";
35
36inline bool is_dispatcher_unavailable(std::string_view code) {
38}
39
40} // namespace simaai::neat::error_codes

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.