Exception: Quonfig::SSEConfigClient::SSEHTTPStatusError

Inherits:
StandardError
  • Object
show all
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

SSEHTTPTerminalError

Instance Attribute Summary collapse

Instance Method Summary collapse

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_codeObject (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