Exception: Cent::ResponseError
- Defined in:
- lib/cent/http.rb
Overview
Cent::ResponseError
Raised when response from Centrifugo contains any error as result of API command execution.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code:, message:) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(code:, message:) ⇒ ResponseError
Returns a new instance of ResponseError.
13 14 15 16 |
# File 'lib/cent/http.rb', line 13 def initialize(code:, message:) @code = code super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
11 12 13 |
# File 'lib/cent/http.rb', line 11 def code @code end |