RedisClientError
public struct RedisClientError : LocalizedError, Equatable, Hashable
When working with RedisClient
, runtime errors can be thrown to indicate problems with connection state, decoding assertions, or otherwise.
-
The connection is closed, but was used to try and send a command to Redis.
Declaration
Swift
public static let connectionClosed: RedisClientError
-
A race condition was triggered between unsubscribing from the last target while subscribing to a new target.
Declaration
Swift
public static let subscriptionModeRaceCondition: RedisClientError
-
A connection that is not authorized for PubSub subscriptions attempted to create a subscription.
Declaration
Swift
public static let pubsubNotAllowed: RedisClientError
-
Expectations of message structures were not met.
If this is ever triggered, please capture the original
RESPValue
string sent from Redis along with the command and arguments sent to Redis for bug reports.Declaration
Swift
public static func assertionFailure(message: String) -> RedisClientError
-
Declaration
Swift
public var errorDescription: String? { get }
-
Declaration
Swift
public var recoverySuggestion: String? { get }
-
Declaration
Swift
public static func == (lhs: RedisClientError, rhs: RedisClientError) -> Bool
-
Declaration
Swift
public func hash(into hasher: inout Hasher)