Exception: Cent::TransportError
- Defined in:
- lib/cent/error.rb
Overview
Raised when Centrifugo returns a non-2xx HTTP status.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status:, message: nil) ⇒ TransportError
constructor
A new instance of TransportError.
Constructor Details
#initialize(status:, message: nil) ⇒ TransportError
Returns a new instance of TransportError.
17 18 19 20 |
# File 'lib/cent/error.rb', line 17 def initialize(status:, message: nil) @status = status super( || "HTTP #{status}") end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
15 16 17 |
# File 'lib/cent/error.rb', line 15 def status @status end |