Exception: Quonfig::SSEConfigClient::SSEHTTPStatusError
- Inherits:
-
StandardError
- Object
- StandardError
- Quonfig::SSEConfigClient::SSEHTTPStatusError
- Defined in:
- lib/quonfig/sse_config_client.rb
Overview
Internal: HTTP-status sentinel error for non-200 SSE responses. Surfaces the status code through #message so parent on_error callbacks can log meaningfully without depending on ld-eventsource’s error hierarchy.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(status_code) ⇒ SSEHTTPStatusError
constructor
A new instance of SSEHTTPStatusError.
Constructor Details
#initialize(status_code) ⇒ SSEHTTPStatusError
Returns a new instance of SSEHTTPStatusError.
396 397 398 399 |
# File 'lib/quonfig/sse_config_client.rb', line 396 def initialize(status_code) @status_code = status_code super("HTTP #{status_code}") end |
Instance Attribute Details
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
394 395 396 |
# File 'lib/quonfig/sse_config_client.rb', line 394 def status_code @status_code end |