make_extension_error in redis - Rust
Description: Creates a new Redis error with the `Extension` kind.

Skip to main content

## make_extension_error

# Function make_extension_error

Source

    pub fn make_extension_error(code: String, detail: Option<String>) -> RedisError

Expand description

Creates a new Redis error with the `Extension` kind.

This function is used to create Redis errors for extension error codes that are not directly understood by the library.

## §Arguments

- `code` - The error code string returned by the Redis server
- `detail` - Optional detailed error message. If None, a default message is used.

## §Returns

A `RedisError` with the `Extension` kind.