Exception: AnswerLayer::StreamError

Inherits:
Error
  • Object
show all
Defined in:
lib/answerlayer/errors.rb

Overview

Server-sent event stream errors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, event: nil) ⇒ StreamError

Returns a new instance of StreamError.



58
59
60
61
# File 'lib/answerlayer/errors.rb', line 58

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

Instance Attribute Details

#eventObject (readonly)

Returns the value of attribute event.



56
57
58
# File 'lib/answerlayer/errors.rb', line 56

def event
  @event
end