Common System 0.2.0
Common interfaces and patterns for system integration
Loading...
Searching...
No Matches
compat.h
Go to the documentation of this file.
1// BSD 3-Clause License
2// Copyright (c) 2025, 🍀☀🌕🌥 🌊
3// See the LICENSE file in the project root for full license information.
4
17#pragma once
18
19// Import error codes from centralized location
21
22namespace kcenon::common {
23
24// Import common error codes from centralized error_codes.h
25// Provide backward compatibility aliases for existing code
26namespace error_codes {
27 using namespace error::codes::common_errors;
28
29 // Uppercase aliases for backward compatibility
43
44 // Module-specific base ranges
45 constexpr int THREAD_ERROR_BASE = static_cast<int>(error::category::thread_system);
46 constexpr int LOGGER_ERROR_BASE = static_cast<int>(error::category::logger_system);
49 constexpr int DATABASE_ERROR_BASE = static_cast<int>(error::category::database_system);
50 constexpr int NETWORK_ERROR_BASE = static_cast<int>(error::category::network_system);
51}
52
53} // namespace kcenon::common
Centralized error code registry for all systems.
constexpr int NETWORK_ERROR_BASE
Definition compat.h:50
constexpr int PERMISSION_DENIED
Definition compat.h:33
constexpr int CANCELLED
Definition compat.h:35
constexpr int REGISTRY_FROZEN
Definition compat.h:41
constexpr int CONTAINER_ERROR_BASE
Definition compat.h:48
constexpr int MONITORING_ERROR_BASE
Definition compat.h:47
constexpr int NOT_FOUND
Definition compat.h:32
constexpr int SUCCESS
Definition compat.h:30
constexpr int THREAD_ERROR_BASE
Definition compat.h:45
constexpr int ALREADY_EXISTS
Definition compat.h:37
constexpr int TIMEOUT
Definition compat.h:34
constexpr int LOGGER_ERROR_BASE
Definition compat.h:46
constexpr int OUT_OF_MEMORY
Definition compat.h:38
constexpr int INVALID_ARGUMENT
Definition compat.h:31
constexpr int IO_ERROR
Definition compat.h:39
constexpr int INTERNAL_ERROR
Definition compat.h:42
constexpr int DATABASE_ERROR_BASE
Definition compat.h:49
constexpr int NETWORK_ERROR
Definition compat.h:40
constexpr int NOT_INITIALIZED
Definition compat.h:36
Core interfaces.
Definition adapter.h:21