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.



410
411
412
413
# File 'lib/quonfig/sse_config_client.rb', line 410

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.



408
409
410
# File 'lib/quonfig/sse_config_client.rb', line 408

def status_code
  @status_code
end