RedisError

public struct RedisError : LocalizedError
extension RedisError: Equatable, Hashable
extension RedisError: RESPValueConvertible

If something goes wrong with a command within Redis, it will respond with an error that is captured and represented by instances of this type.

  • The error message from Redis, prefixed with (Redis) to indicate the message was from Redis itself.

    Declaration

    Swift

    public let message: String
  • Declaration

    Swift

    public var errorDescription: String? { get }
  • Creates a new instance of an error from a Redis instance.

    Declaration

    Swift

    public init(reason: String)

    Parameters

    reason

    The error reason from Redis.