Exception: AnswerLayer::StreamError
- Defined in:
- lib/answerlayer/errors.rb
Overview
Server-sent event stream errors.
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
Instance Method Summary collapse
-
#initialize(message, event: nil) ⇒ StreamError
constructor
A new instance of StreamError.
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(, event: nil) @event = event super() end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
56 57 58 |
# File 'lib/answerlayer/errors.rb', line 56 def event @event end |