Exception: Salesforce::InvalidRequest
- Inherits:
-
StandardError
- Object
- StandardError
- Salesforce::InvalidRequest
- Defined in:
- lib/salesforce/errors.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(error_options, url) ⇒ InvalidRequest
constructor
A new instance of InvalidRequest.
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(, url) @error_code = ['errorCode'] super("#{["errorCode"]}: #{["message"]} while accessing #{url}") end |
Instance Attribute Details
#error_code ⇒ Object
Returns the value of attribute error_code.
3 4 5 |
# File 'lib/salesforce/errors.rb', line 3 def error_code @error_code end |