Exception: SalesforceApi::Errors::ApiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/salesforceapi-rest/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, http_code) ⇒ ApiError

Returns a new instance of ApiError.



8
9
10
11
# File 'lib/salesforceapi-rest/errors.rb', line 8

def initialize(message, http_code)
  super message
  @http_code = http_code
end

Instance Attribute Details

#http_codeObject

Returns the value of attribute http_code.



6
7
8
# File 'lib/salesforceapi-rest/errors.rb', line 6

def http_code
  @http_code
end