Exception: Scale::Api::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Scale::Api::Error
- Defined in:
- lib/scale/api/errors.rb
Direct Known Subclasses
APIKeyInvalid, BadRequest, ConnectionError, InternalServerError, NotFound, TooManyRequests, Unauthorized
Instance Attribute Summary collapse
-
#status_code ⇒ Object
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message = 'Please double check the request was properly formed and try again', status_code = 400) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = 'Please double check the request was properly formed and try again', status_code = 400) ⇒ Error
Returns a new instance of Error.
6 7 8 9 |
# File 'lib/scale/api/errors.rb', line 6 def initialize( = 'Please double check the request was properly formed and try again', status_code = 400) super() self.status_code = status_code end |
Instance Attribute Details
#status_code ⇒ Object
Returns the value of attribute status_code.
4 5 6 |
# File 'lib/scale/api/errors.rb', line 4 def status_code @status_code end |