Exception: Increase::HTTP::ResponseError
- Defined in:
- lib/increase/base_client.rb
Direct Known Subclasses
APIStatusError, AuthenticationError, BadRequestError, ConflictError, InternalServerError, NotFoundError, PermissionDeniedError, RateLimitError, UnprocessableEntityError
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message:, response:, body:) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(message:, response:, body:) ⇒ ResponseError
Returns a new instance of ResponseError.
276 277 278 279 280 281 |
# File 'lib/increase/base_client.rb', line 276 def initialize(message:, response:, body:) super() @response = response @body = body @code = response.code.to_i end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
274 275 276 |
# File 'lib/increase/base_client.rb', line 274 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
274 275 276 |
# File 'lib/increase/base_client.rb', line 274 def code @code end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
274 275 276 |
# File 'lib/increase/base_client.rb', line 274 def response @response end |