Exception: Valkey::ProtocolError

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

Instance Method Summary collapse

Constructor Details

#initialize(reply_type) ⇒ ProtocolError

Returns a new instance of ProtocolError.



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

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