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.
62 63 64 65 |
# File 'lib/ld-eventsource/errors.rb', line 62 def initialize(status) @status = status super("proxy server returned error #{status}") end |
Instance Attribute Details
#status ⇒ Int (readonly)
The HTTP status code.
69 70 71 |
# File 'lib/ld-eventsource/errors.rb', line 69 def status @status end |