Exception: Scale::Api::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/scale/api/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message = 'Please double check the request was properly formed and try again', status_code = 400)
  super(message)
  self.status_code = status_code
end

Instance Attribute Details

#status_codeObject

Returns the value of attribute status_code.



4
5
6
# File 'lib/scale/api/errors.rb', line 4

def status_code
  @status_code
end