Exception: RubyPi::StreamingProtocolError

Inherits:
ApiError
  • Object
show all
Defined in:
lib/ruby_pi/errors.rb

Overview

Raised when an HTTP streaming response violates the provider's protocol. This includes malformed SSE data, invalid UTF-8, oversized events, and a connection that closes before the provider's terminal event arrives.

It inherits from ApiError with a nil status code so BaseProvider treats a broken HTTP-200 stream like a transient transport failure and can retry it.

Instance Attribute Summary

Attributes inherited from ApiError

#response_body, #status_code

Method Summary

Methods inherited from ApiError

#initialize

Constructor Details

This class inherits a constructor from RubyPi::ApiError