Exception: Raif::Errors::StreamingError
- Inherits:
-
StandardError
- Object
- StandardError
- Raif::Errors::StreamingError
- Defined in:
- lib/raif/errors/streaming_error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(message:, type:, event:, code: nil) ⇒ StreamingError
constructor
A new instance of StreamingError.
- #to_s ⇒ Object
Constructor Details
#initialize(message:, type:, event:, code: nil) ⇒ StreamingError
Returns a new instance of StreamingError.
8 9 10 11 12 13 14 |
# File 'lib/raif/errors/streaming_error.rb', line 8 def initialize(message:, type:, event:, code: nil) super() @type = type @code = code @event = event end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
6 7 8 |
# File 'lib/raif/errors/streaming_error.rb', line 6 def code @code end |
#event ⇒ Object (readonly)
Returns the value of attribute event.
6 7 8 |
# File 'lib/raif/errors/streaming_error.rb', line 6 def event @event end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/raif/errors/streaming_error.rb', line 6 def type @type end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/raif/errors/streaming_error.rb', line 16 def to_s "[#{type}] #{super} (code=#{code}, event=#{event})" end |