Exception: SSE::Errors::HTTPProxyError
- Inherits:
-
StandardError
- Object
- StandardError
- SSE::Errors::HTTPProxyError
- Defined in:
- lib/ld-eventsource/errors.rb
Overview
An exception class indicating that an HTTP proxy server returned an error.
Instance Attribute Summary collapse
-
#status ⇒ Int
readonly
The HTTP status code.
Instance Method Summary collapse
-
#initialize(status) ⇒ HTTPProxyError
constructor
A new instance of HTTPProxyError.
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
#status ⇒ Int (readonly)
The HTTP status code.
53 54 55 |
# File 'lib/ld-eventsource/errors.rb', line 53 def status @status end |