Exception: Rubycent::RequestError
- 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
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status) ⇒ RequestError
constructor
A new instance of RequestError.
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(, status) @message = @status = status super() end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
9 10 11 |
# File 'lib/rubycent/errors/request_error.rb', line 9 def @message end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
9 10 11 |
# File 'lib/rubycent/errors/request_error.rb', line 9 def status @status end |