123456789_123456789_123456789_123456789_123456789_

Exception: Redis::KeyspaceNotifications::ParseError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, ::Redis::BaseError, StandardError
Instance Chain:
self, ::Redis::BaseError, StandardError
Inherits: Redis::BaseError
  • Object
Defined in: lib/redis/keyspace_notifications.rb

Overview

Raised when a message on a notification channel cannot be decoded.

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(message, channel: nil, payload: nil) ⇒ ParseError

Parameters:

  • message (String)

    the error message

  • channel (String, nil)

    the raw channel

  • payload (String, nil)

    the raw payload

[ GitHub ]

  
# File 'lib/redis/keyspace_notifications.rb', line 25

def initialize(message, channel: nil, payload: nil)
  super(message)
  @channel = channel
  @payload = payload
end

Instance Attribute Details

#channelString? (readonly)

Returns:

  • (String, nil)

    the raw channel the message arrived on

  • (String, nil)

    the raw message payload

[ GitHub ]

  
# File 'lib/redis/keyspace_notifications.rb', line 20

attr_reader :channel, :payload

#payloadString? (readonly)

Returns:

  • (String, nil)

    the raw channel the message arrived on

  • (String, nil)

    the raw message payload

[ GitHub ]

  
# File 'lib/redis/keyspace_notifications.rb', line 20

attr_reader :channel, :payload