Exception: Salesforce::InvalidRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_options, url) ⇒ InvalidRequest

Returns a new instance of InvalidRequest.



5
6
7
8
# File 'lib/salesforce/errors.rb', line 5

def initialize(error_options, url)
  @error_code = error_options['errorCode']
  super("#{error_options["errorCode"]}: #{error_options["message"]} while accessing #{url}")
end

Instance Attribute Details

#error_codeObject

Returns the value of attribute error_code.



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

def error_code
  @error_code
end