Exception: Redis::ProtocolError
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/redis-5.0.5/lib/redis/errors.rb
Overview
Raised by the connection when a protocol error occurs.
Instance Method Summary collapse
-
#initialize(reply_type) ⇒ ProtocolError
constructor
A new instance of ProtocolError.
Constructor Details
#initialize(reply_type) ⇒ ProtocolError
Returns a new instance of ProtocolError.
10 11 12 13 14 15 16 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/redis-5.0.5/lib/redis/errors.rb', line 10 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 Redis after forking.\n EOS\nend\n".gsub(/(?:^|\n)\s*/, " ")) |