Exception: Redis::KeyspaceNotifications::ParseError
- Inherits:
-
BaseError
- Object
- StandardError
- BaseError
- Redis::KeyspaceNotifications::ParseError
- Defined in:
- lib/redis/keyspace_notifications.rb
Overview
Raised when a message on a notification channel cannot be decoded.
Instance Attribute Summary collapse
- #channel ⇒ String? readonly
- #payload ⇒ String? readonly
Instance Method Summary collapse
-
#initialize(message, channel: nil, payload: nil) ⇒ ParseError
constructor
A new instance of ParseError.
Constructor Details
#initialize(message, channel: nil, payload: nil) ⇒ ParseError
Returns a new instance of ParseError.
25 26 27 28 29 |
# File 'lib/redis/keyspace_notifications.rb', line 25 def initialize(, channel: nil, payload: nil) super() @channel = channel @payload = payload end |
Instance Attribute Details
#channel ⇒ String? (readonly)
20 21 22 |
# File 'lib/redis/keyspace_notifications.rb', line 20 def channel @channel end |
#payload ⇒ String? (readonly)
20 21 22 |
# File 'lib/redis/keyspace_notifications.rb', line 20 def payload @payload end |