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 ExtensionError 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 ExtensionError kind.