Exception: Rubycent::RequestError

Inherits:
Error
  • Object
show all
Defined in:
lib/rubycent/errors/request_error.rb

Overview

Rubycent::RequestError

Raised when request to Centrifugo API failed in some way.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, status) ⇒ RequestError

Returns a new instance of RequestError.



11
12
13
14
15
16
# File 'lib/rubycent/errors/request_error.rb', line 11

def initialize(message, status)
  @message = message
  @status = status

  super(message)
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



9
10
11
# File 'lib/rubycent/errors/request_error.rb', line 9

def message
  @message
end

#statusObject (readonly)

Returns the value of attribute status.



9
10
11
# File 'lib/rubycent/errors/request_error.rb', line 9

def status
  @status
end