Exception: Redis::ProtocolError

Inherits:
BaseError
  • Object
show all
Defined in:
lib/redis/errors.rb

Overview

Raised by the connection when a protocol error occurs.

Instance Method Summary collapse

Constructor Details

#initialize(reply_type) ⇒ ProtocolError

Returns a new instance of ProtocolError



8
9
10
11
12
13
14
# File 'lib/redis/errors.rb', line 8

def initialize(reply_type)
  super("Got '\#{reply_type}' as initial reply byte.\nIf you're in a forking environment, such as Unicorn, you need to\nconnect to Redis after forking.\n".gsub(/(?:^|\n)\s*/, " "))
end