Exception: SSE::Errors::HTTPProxyError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ld-eventsource/errors.rb

Overview

An exception class indicating that an HTTP proxy server returned an error.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status) ⇒ HTTPProxyError

Returns a new instance of HTTPProxyError.



46
47
48
49
# File 'lib/ld-eventsource/errors.rb', line 46

def initialize(status)
  @status = status
  super("proxy server returned error #{status}")
end

Instance Attribute Details

#statusInt (readonly)

The HTTP status code.

Returns:

  • (Int)


53
54
55
# File 'lib/ld-eventsource/errors.rb', line 53

def status
  @status
end