19namespace kcenon {
namespace monitoring {
150 return "Collector not found";
152 return "Collection failed";
154 return "Collector initialization failed";
156 return "Collector already exists";
158 return "Collector is disabled";
160 return "Invalid collector configuration";
162 return "Monitoring is disabled";
166 return "Storage is full";
168 return "Storage is corrupted";
170 return "Compression failed";
172 return "Storage not initialized";
174 return "Storage write failed";
176 return "Storage read failed";
178 return "Storage is empty";
182 return "Invalid configuration";
184 return "Invalid interval";
186 return "Invalid capacity";
188 return "Configuration not found";
190 return "Configuration parse error";
194 return "System resource unavailable";
196 return "Permission denied";
198 return "Out of memory";
200 return "Memory allocation failed";
202 return "Operation timeout";
204 return "Operation cancelled";
208 return "Thread system not available";
210 return "Logger system not available";
212 return "Incompatible version";
214 return "Adapter initialization failed";
218 return "Metric not found";
220 return "Invalid metric type";
222 return "Metric overflow";
224 return "Aggregation failed";
228 return "Health check failed";
230 return "Health check timeout";
232 return "Health check not registered";
236 return "Circuit breaker is open";
238 return "Circuit breaker is half-open";
240 return "Retry attempts exhausted";
242 return "Operation failed";
244 return "Network error";
246 return "Service unavailable";
248 return "Service operating in degraded mode";
250 return "Error boundary triggered";
252 return "Fallback operation failed";
254 return "Recovery operation failed";
258 return "Invalid argument";
260 return "Invalid state";
264 return "Already exists";
266 return "Resource exhausted";
268 return "Already started";
270 return "Dependency missing";
274 return "Quota exceeded";
276 return "Rate limit exceeded";
278 return "CPU throttled";
280 return "Memory quota exceeded";
282 return "Bandwidth exceeded";
284 return "Resource unavailable";
288 return "Transaction failed";
290 return "Transaction timeout";
292 return "Transaction aborted";
294 return "Validation failed";
296 return "Data corrupted";
298 return "State inconsistent";
300 return "Deadlock detected";
302 return "Rollback failed";
307 return "Unknown error";
319 return "The specified collector was not found. Check collector name and ensure it's registered.";
321 return "Storage capacity exceeded. Consider increasing buffer size or reducing collection frequency.";
323 return "Configuration validation failed. Review configuration parameters and constraints.";
325 return "Thread system integration not available. Ensure thread_system is properly linked.";
327 return "Circuit breaker is open, rejecting calls to protect downstream services. Wait for recovery or check service health.";
329 return "All retry attempts have been exhausted. The operation failed permanently. Check service availability and error conditions.";
331 return "The requested operation failed. Check service status, network connectivity, and input parameters.";
333 return "Service is operating in degraded mode due to detected issues. Some features may be unavailable.";
335 return "Error boundary has been triggered to prevent error propagation. Check upstream service health.";
337 return "Both primary operation and fallback mechanism failed. Check alternative service configurations.";
339 return "Resource quota has been exceeded. Reduce resource consumption or increase quota limits.";
341 return "Rate limit has been exceeded. Reduce request frequency or increase rate limits.";
343 return "Operation has been throttled due to high CPU usage. Reduce system load or adjust CPU limits.";
345 return "Memory quota has been exceeded. Free memory or increase memory quota limits.";
347 return "Bandwidth quota has been exceeded. Reduce data transfer or increase bandwidth limits.";
349 return "Required resource is currently unavailable. Try again later or check resource status.";
351 return "Transaction failed to complete successfully. Check operation prerequisites and system state.";
353 return "Transaction exceeded its timeout limit. Consider increasing timeout or reducing transaction scope.";
355 return "Transaction was aborted due to conflicts or errors. Review transaction operations and retry.";
357 return "Data validation failed. Check data integrity and consistency requirements.";
359 return "Data corruption detected. Run data repair operations or restore from backup.";
361 return "System state is inconsistent across components. Synchronization or recovery needed.";
363 return "Deadlock detected in transaction processing. Review locking strategy and transaction ordering.";
365 return "Transaction rollback failed. Manual cleanup may be required to restore consistent state.";
std::string error_code_to_string(monitoring_error_code code)
Convert error code to string representation.
monitoring_error_code
Comprehensive error codes for monitoring system operations.
@ logger_system_not_available
@ configuration_not_found
@ retry_attempts_exhausted
@ error_boundary_triggered
@ invalid_collector_config
@ collector_already_exists
@ storage_not_initialized
@ system_resource_unavailable
@ memory_allocation_failed
@ adapter_initialization_failed
@ collector_initialization_failed
@ health_check_not_registered
@ thread_system_not_available
@ configuration_parse_error
@ circuit_breaker_half_open
std::string get_error_details(monitoring_error_code code)
Get detailed error message.