Exception: RForce::Wrapper::SalesforceFaultException
- Inherits:
-
Exception
- Object
- Exception
- RForce::Wrapper::SalesforceFaultException
- Defined in:
- lib/rforce-wrapper/exceptions/salesforce_fault_exception.rb
Overview
Raised when a Salesforce Web Services API SOAP response includes a
Fault element.
Instance Method Summary (collapse)
-
- (SalesforceFaultException) initialize(code, message)
constructor
Creates a new
SalesforceFaultExceptionwith the given code and message. -
- (String) to_s
Returns a string representation of the
Fault, including both the code and the message.
Constructor Details
- (SalesforceFaultException) initialize(code, message)
Creates a new SalesforceFaultException with the given code and
message.
13 14 15 16 |
# File 'lib/rforce-wrapper/exceptions/salesforce_fault_exception.rb', line 13 def initialize(code, ) @code = code @message = end |
Instance Method Details
- (String) to_s
Returns a string representation of the Fault, including both the
code and the message.
22 23 24 |
# File 'lib/rforce-wrapper/exceptions/salesforce_fault_exception.rb', line 22 def to_s "#{@code}: #{@message}" end |