Skip to main content

nap_core/server/
error_ids.rs

1// SPDX-FileCopyrightText: 2026 Digital Creations
2// SPDX-License-Identifier: MIT
3
4//! Error IDs for diagnostic tracking.
5//!
6//! These IDs should be used in all error contexts to allow Sentry to aggregate
7//! and track specific failure modes in production.
8
9/// Lore download failed
10pub const ERR_LORE_DOWNLOAD_FAILED: &str = "NAP-ERR-001";
11/// Lore install script failed
12pub const ERR_LORE_INSTALL_FAILED: &str = "NAP-ERR-002";
13/// Lore compatibility check failed
14pub const ERR_LORE_INCOMPATIBLE: &str = "NAP-ERR-003";
15/// Lore configuration generation failed
16pub const ERR_LORE_CONFIG_FAILED: &str = "NAP-ERR-004";
17/// Lore certificate generation failed
18pub const ERR_LORE_CERT_FAILED: &str = "NAP-ERR-005";
19/// Lore process failed to start/become healthy
20pub const ERR_LORE_STARTUP_FAILED: &str = "NAP-ERR-006";