Expand description
Unified error handling for redisctl-core
Wraps both Cloud and Enterprise errors with consistent helper methods.
§Example
use redisctl_core::{CoreError, Result};
use redis_cloud::CloudError;
fn handle_error(err: CoreError) {
if err.is_not_found() {
println!("Resource not found");
} else if err.is_retryable() {
println!("Temporary error, can retry");
}
}
// Cloud errors are automatically converted
let cloud_err = CloudError::NotFound { message: "DB not found".to_string() };
let core_err: CoreError = cloud_err.into();
assert!(core_err.is_not_found());Enums§
- Core
Error - Core error type wrapping both platform errors
Type Aliases§
- Result
- Result type alias for core operations