Exception: Cent::ResponseError

Inherits:
Error
  • Object
show all
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

Instance Method Summary collapse

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(message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



11
12
13
# File 'lib/cent/http.rb', line 11

def code
  @code
end