Exception: Salesfly::ResponseError

Inherits:
APIError
  • Object
show all
Defined in:
lib/salesfly/errors/response_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = "", status = 400, code = "") ⇒ ResponseError

Returns a new instance of ResponseError.



5
6
7
8
9
# File 'lib/salesfly/errors/response_error.rb', line 5

def initialize(msg="", status=400, code="")
  @status = status
  @code = code
  super(msg)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/salesfly/errors/response_error.rb', line 3

def code
  @code
end

#statusObject (readonly)

Returns the value of attribute status.



3
4
5
# File 'lib/salesfly/errors/response_error.rb', line 3

def status
  @status
end