Exception: Geminize::InvalidStreamFormatError

Inherits:
StreamingError show all
Defined in:
lib/geminize/errors.rb

Overview

Error when the stream format is invalid

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, code = nil, http_status = 400) ⇒ InvalidStreamFormatError

Returns a new instance of InvalidStreamFormatError.



161
162
163
164
165
166
167
# File 'lib/geminize/errors.rb', line 161

def initialize(message = nil, code = nil, http_status = 400)
  super(
    message || "Invalid stream format or response structure",
    code || "INVALID_STREAM_FORMAT",
    http_status
  )
end