19namespace kcenon {
namespace monitoring {
135 return "Collector not found";
137 return "Collection failed";
139 return "Collector initialization failed";
141 return "Collector already exists";
143 return "Collector is disabled";
145 return "Invalid collector configuration";
147 return "Monitoring is disabled";
151 return "Storage is full";
153 return "Storage is corrupted";
155 return "Compression failed";
157 return "Storage not initialized";
159 return "Storage write failed";
161 return "Storage read failed";
163 return "Storage is empty";
167 return "Invalid configuration";
169 return "Invalid interval";
171 return "Invalid capacity";
173 return "Configuration not found";
175 return "Configuration parse error";
179 return "System resource unavailable";
181 return "Permission denied";
183 return "Out of memory";
185 return "Memory allocation failed";
187 return "Operation timeout";
189 return "Operation cancelled";
193 return "Thread system not available";
195 return "Logger system not available";
197 return "Incompatible version";
199 return "Adapter initialization failed";
203 return "Metric not found";
205 return "Invalid metric type";
207 return "Metric overflow";
209 return "Aggregation failed";
213 return "Health check failed";
215 return "Health check timeout";
217 return "Health check not registered";
221 return "Circuit breaker is open";
223 return "Circuit breaker is half-open";
225 return "Retry attempts exhausted";
227 return "Operation failed";
229 return "Network error";
231 return "Service unavailable";
233 return "Service operating in degraded mode";
235 return "Error boundary triggered";
237 return "Fallback operation failed";
239 return "Recovery operation failed";
243 return "Invalid argument";
245 return "Invalid state";
249 return "Already exists";
251 return "Resource exhausted";
253 return "Already started";
255 return "Dependency missing";
259 return "Quota exceeded";
261 return "Rate limit exceeded";
263 return "CPU throttled";
265 return "Memory quota exceeded";
267 return "Bandwidth exceeded";
269 return "Resource unavailable";
273 return "Transaction failed";
275 return "Transaction timeout";
277 return "Transaction aborted";
279 return "Validation failed";
281 return "Data corrupted";
283 return "State inconsistent";
285 return "Deadlock detected";
287 return "Rollback failed";
292 return "Unknown error";
304 return "The specified collector was not found. Check collector name and ensure it's registered.";
306 return "Storage capacity exceeded. Consider increasing buffer size or reducing collection frequency.";
308 return "Configuration validation failed. Review configuration parameters and constraints.";
310 return "Thread system integration not available. Ensure thread_system is properly linked.";
312 return "Circuit breaker is open, rejecting calls to protect downstream services. Wait for recovery or check service health.";
314 return "All retry attempts have been exhausted. The operation failed permanently. Check service availability and error conditions.";
316 return "The requested operation failed. Check service status, network connectivity, and input parameters.";
318 return "Service is operating in degraded mode due to detected issues. Some features may be unavailable.";
320 return "Error boundary has been triggered to prevent error propagation. Check upstream service health.";
322 return "Both primary operation and fallback mechanism failed. Check alternative service configurations.";
324 return "Resource quota has been exceeded. Reduce resource consumption or increase quota limits.";
326 return "Rate limit has been exceeded. Reduce request frequency or increase rate limits.";
328 return "Operation has been throttled due to high CPU usage. Reduce system load or adjust CPU limits.";
330 return "Memory quota has been exceeded. Free memory or increase memory quota limits.";
332 return "Bandwidth quota has been exceeded. Reduce data transfer or increase bandwidth limits.";
334 return "Required resource is currently unavailable. Try again later or check resource status.";
336 return "Transaction failed to complete successfully. Check operation prerequisites and system state.";
338 return "Transaction exceeded its timeout limit. Consider increasing timeout or reducing transaction scope.";
340 return "Transaction was aborted due to conflicts or errors. Review transaction operations and retry.";
342 return "Data validation failed. Check data integrity and consistency requirements.";
344 return "Data corruption detected. Run data repair operations or restore from backup.";
346 return "System state is inconsistent across components. Synchronization or recovery needed.";
348 return "Deadlock detected in transaction processing. Review locking strategy and transaction ordering.";
350 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.