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.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#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.
Constructor Details
#initialize(message:, type:, event:, code: nil) ⇒ StreamingError
Returns a new instance of StreamingError.
8 9 10 11 12 13 14 15 |
# File 'lib/raif/errors/streaming_error.rb', line 8 def initialize(message:, type:, event:, code: nil) super @message = @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 |
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/raif/errors/streaming_error.rb', line 6 def @message 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 |